public enum FindOptionSet_cdinorz extends Enum<FindOptionSet_cdinorz> implements FindOptions
find
command with
the following options: i
, z
, r
, c
, n
, o
, d
.
Application code does normally not directly refer to this class;
Find.Options
should be used instead to specify command
options. See also FindOptions
for more information.
FindOptions.Default
Modifier and Type | Field and Description |
---|---|
FindOptionSet_cdinorz |
c
Option
"-c" : The time operand refers to the creation time of the file |
FindOptionSet_cdinorz |
d
Option
"-d" : Consider only directories |
FindOptionSet_cdinorz |
i
Option
"-i" : Use case insensitive matching when applying the file name pattern
specified by the name operand |
FindOptionSet_cdinorz |
ignoreCase
Option
"--ignoreCase" : Use case insensitive matching when applying the file name pattern
specified by the name operand |
FindOptionSet_cdinorz |
n
Option
"-n" : Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default) |
FindOptionSet_cdinorz |
o
Option
"-o" : Consider only files that have been created, modified or accessed
before or at the time specified by the time operand |
FindOptionSet_cdinorz |
print0
Option
"--print0" : Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). |
FindOptionSet_cdinorz |
r
Option
"-r" : Use full regular expression syntax for the patterns specified by the
name operand |
FindOptionSet_cdinorz |
regex
Option
"--regex" : Use full regular expression syntax for the patterns specified by the
name operand |
FindOptionSet_cdinorz |
timeCreate
Option
"--timeCreate" : The time operand refers to the creation time of the file |
FindOptionSet_cdinorz |
timeNewer
Option
"--timeNewer" : Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default) |
FindOptionSet_cdinorz |
timeOlder
Option
"--timeOlder" : Consider only files that have been created, modified or accessed
before or at the time specified by the time operand |
FindOptionSet_cdinorz |
typeDirectory
Option
"--typeDirectory" : Consider only directories |
FindOptionSet_cdinorz |
z
Option
"-z" : Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). |
CONVERTER, EMPTY
Modifier and Type | Method and Description |
---|---|
EnumSet<FindOption> |
asSet()
Returns the set with the active options.
|
boolean |
isSet(FindOption option)
Returns true if the specified
option is set and false otherwise |
Iterator<FindOption> |
iterator()
Returns an immutable iterator with the active options of this option set.
|
Class<FindOption> |
optionType()
Returns the option type class, usually an enum.
|
int |
size()
Returns the number of active options in this option set.
|
boolean |
useAcronymFor(FindOption option)
Returns true if the
acronym should be used in
for the specified option string representations. |
static FindOptionSet_cdinorz |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FindOptionSet_cdinorz[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
forEach, spliterator
public static final FindOptionSet_cdinorz Active_cdinorz
public static final FindOptionSet_cdinorz Active_cdinorz_long
public static final FindOptionSet_cdinorz Active_cdinor
public static final FindOptionSet_cdinorz Active_cdinor_long
public static final FindOptionSet_cdinorz Active_cdinrz
public static final FindOptionSet_cdinorz Active_cdinrz_long
public static final FindOptionSet_cdinorz Active_cdiorz
public static final FindOptionSet_cdinorz Active_cdiorz_long
public static final FindOptionSet_cdinorz Active_cdnorz
public static final FindOptionSet_cdinorz Active_cdnorz_long
public static final FindOptionSet_cdinorz Active_cdinoz
public static final FindOptionSet_cdinorz Active_cdinoz_long
public static final FindOptionSet_cdinorz Active_cdinr
public static final FindOptionSet_cdinorz Active_cdinr_long
public static final FindOptionSet_cdinorz Active_cdior
public static final FindOptionSet_cdinorz Active_cdior_long
public static final FindOptionSet_cdinorz Active_cdirz
public static final FindOptionSet_cdinorz Active_cdirz_long
public static final FindOptionSet_cdinorz Active_cdnor
public static final FindOptionSet_cdinorz Active_cdnor_long
public static final FindOptionSet_cdinorz Active_cdnrz
public static final FindOptionSet_cdinorz Active_cdnrz_long
public static final FindOptionSet_cdinorz Active_cdorz
public static final FindOptionSet_cdinorz Active_cdorz_long
public static final FindOptionSet_cdinorz Active_cdino
public static final FindOptionSet_cdinorz Active_cdino_long
public static final FindOptionSet_cdinorz Active_cdinz
public static final FindOptionSet_cdinorz Active_cdinz_long
public static final FindOptionSet_cdinorz Active_cdioz
public static final FindOptionSet_cdinorz Active_cdioz_long
public static final FindOptionSet_cdinorz Active_cdnoz
public static final FindOptionSet_cdinorz Active_cdnoz_long
public static final FindOptionSet_cdinorz Active_cdir
public static final FindOptionSet_cdinorz Active_cdir_long
public static final FindOptionSet_cdinorz Active_cdnr
public static final FindOptionSet_cdinorz Active_cdnr_long
public static final FindOptionSet_cdinorz Active_cdor
public static final FindOptionSet_cdinorz Active_cdor_long
public static final FindOptionSet_cdinorz Active_cdrz
public static final FindOptionSet_cdinorz Active_cdrz_long
public static final FindOptionSet_cdinorz Active_cdin
public static final FindOptionSet_cdinorz Active_cdin_long
public static final FindOptionSet_cdinorz Active_cdio
public static final FindOptionSet_cdinorz Active_cdio_long
public static final FindOptionSet_cdinorz Active_cdiz
public static final FindOptionSet_cdinorz Active_cdiz_long
public static final FindOptionSet_cdinorz Active_cdno
public static final FindOptionSet_cdinorz Active_cdno_long
public static final FindOptionSet_cdinorz Active_cdnz
public static final FindOptionSet_cdinorz Active_cdnz_long
public static final FindOptionSet_cdinorz Active_cdoz
public static final FindOptionSet_cdinorz Active_cdoz_long
public static final FindOptionSet_cdinorz Active_cdr
public static final FindOptionSet_cdinorz Active_cdr_long
public static final FindOptionSet_cdinorz Active_cdi
public static final FindOptionSet_cdinorz Active_cdi_long
public static final FindOptionSet_cdinorz Active_cdn
public static final FindOptionSet_cdinorz Active_cdn_long
public static final FindOptionSet_cdinorz Active_cdo
public static final FindOptionSet_cdinorz Active_cdo_long
public static final FindOptionSet_cdinorz Active_cdz
public static final FindOptionSet_cdinorz Active_cdz_long
public static final FindOptionSet_cdinorz Active_cd
public static final FindOptionSet_cdinorz Active_cd_long
public final FindOptionSet_cdinorz i
"-i"
: Use case insensitive matching when applying the file name pattern
specified by the name operand
(This option is ignored if no name operand is specified).
The option "-i"
is equivalent to the "--
ignoreCase
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-i"
. If the option "-i"
is already set, the field i
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz ignoreCase
"--ignoreCase"
: Use case insensitive matching when applying the file name pattern
specified by the name operand
(This option is ignored if no name operand is specified).
The option "--ignoreCase"
is equivalent to the "-
i
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--ignoreCase"
. If the option "--ignoreCase"
is already set, the field ignoreCase
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz z
"-z"
: Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). This
allows file names that contain newlines or other types of white
space to be correctly interpreted by programs that process the find
output. This option corresponds to the --delimiter0 option of xargs.
The option "-z"
is equivalent to the "--
print0
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-z"
. If the option "-z"
is already set, the field z
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz print0
"--print0"
: Print the full file name on the standard output, followed by a null
character (instead of the newline character used by default). This
allows file names that contain newlines or other types of white
space to be correctly interpreted by programs that process the find
output. This option corresponds to the --delimiter0 option of xargs.
The option "--print0"
is equivalent to the "-
z
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--print0"
. If the option "--print0"
is already set, the field print0
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz r
"-r"
: Use full regular expression syntax for the patterns specified by the
name operand
(This option is ignored if no name operand is specified).
The option "-r"
is equivalent to the "--
regex
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-r"
. If the option "-r"
is already set, the field r
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz regex
"--regex"
: Use full regular expression syntax for the patterns specified by the
name operand
(This option is ignored if no name operand is specified).
The option "--regex"
is equivalent to the "-
r
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--regex"
. If the option "--regex"
is already set, the field regex
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz c
"-c"
: The time operand refers to the creation time of the file
(This option is ignored if no time operand is specified).
The option "-c"
is equivalent to the "--
timeCreate
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-c"
. If the option "-c"
is already set, the field c
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz timeCreate
"--timeCreate"
: The time operand refers to the creation time of the file
(This option is ignored if no time operand is specified).
The option "--timeCreate"
is equivalent to the "-
c
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--timeCreate"
. If the option "--timeCreate"
is already set, the field timeCreate
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz n
"-n"
: Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default)
(This option is ignored if no time operand is specified).
The option "-n"
is equivalent to the "--
timeNewer
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-n"
. If the option "-n"
is already set, the field n
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz timeNewer
"--timeNewer"
: Consider only files that have been created, modified or accessed
after or at the time specified by the time operand (the default)
(This option is ignored if no time operand is specified).
The option "--timeNewer"
is equivalent to the "-
n
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--timeNewer"
. If the option "--timeNewer"
is already set, the field timeNewer
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz o
"-o"
: Consider only files that have been created, modified or accessed
before or at the time specified by the time operand
(This option is ignored if no time operand is specified).
The option "-o"
is equivalent to the "--
timeOlder
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-o"
. If the option "-o"
is already set, the field o
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz timeOlder
"--timeOlder"
: Consider only files that have been created, modified or accessed
before or at the time specified by the time operand
(This option is ignored if no time operand is specified).
The option "--timeOlder"
is equivalent to the "-
o
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--timeOlder"
. If the option "--timeOlder"
is already set, the field timeOlder
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz d
"-d"
: Consider only directories
The option "-d"
is equivalent to the "--
typeDirectory
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-d"
. If the option "-d"
is already set, the field d
points to the enum constant itself
as it already represents the current set of options.
public final FindOptionSet_cdinorz typeDirectory
"--typeDirectory"
: Consider only directories
The option "--typeDirectory"
is equivalent to the "-
d
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--typeDirectory"
. If the option "--typeDirectory"
is already set, the field typeDirectory
points to the enum constant itself
as it already represents the current set of options.
public static FindOptionSet_cdinorz[] values()
for (FindOptionSet_cdinorz c : FindOptionSet_cdinorz.values()) System.out.println(c);
public static FindOptionSet_cdinorz valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<FindOption> optionType()
OptionSet
optionType
in interface OptionSet<FindOption>
public boolean isSet(FindOption option)
OptionSet
option
is set and false otherwiseisSet
in interface OptionSet<FindOption>
option
- the option to testoption
is set in this OptionSet
public int size()
OptionSet
size
in interface OptionSet<FindOption>
public EnumSet<FindOption> asSet()
this
option set.asSet
in interface OptionSet<FindOption>
public Iterator<FindOption> iterator()
iterator
in interface Iterable<FindOption>
iterator
in interface OptionSet<FindOption>
public boolean useAcronymFor(FindOption option)
acronym
should be used in
for the specified option
string representations.
In particular and independent from the option
argument, this
option set returns true if the last option added to this set was an
acronym, and false if it was a long option name.
For instance, the set defined as
FindOptionSet_cdinorz.ignoreCase.z;uses acronyms, that is, this method always returns true for the above set.
On the other hand, long option names are used and this method always returns false for the set
FindOptionSet_cdinorz.i.print0;
Note that a repeated option is not treated as the last set option. For instance, the first and last option of the following set are equivalent and acronyms are used:
FindOptionSet_cdinorz.i.z.ignoreCase;
This method always returns true for the empty set with no active options.
useAcronymFor
in interface OptionSet<FindOption>
option
- the option of interest, has no impact on the result returned
by this methodCopyright © 2024. All rights reserved.