- java.lang.Object
-
- java.lang.Enum<FilePattern.Sort>
-
- org.jooq.FilePattern.Sort
-
- All Implemented Interfaces:
Serializable,Comparable<FilePattern.Sort>
- Enclosing class:
- FilePattern
public static enum FilePattern.Sort extends Enum<FilePattern.Sort>
The sort algorithm to be applied to directory contents.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHANUMERICStandard alphanumeric sorting.FLYWAYFlyway compatible sorting.NONENo explicit sorting (may be non deterministic, depending on the file system).SEMANTICSemantic, version aware sorting (the default).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilePattern.Sortof(String sort)static FilePattern.SortvalueOf(String name)Returns the enum constant of this type with the specified name.static FilePattern.Sort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEMANTIC
public static final FilePattern.Sort SEMANTIC
Semantic, version aware sorting (the default).For example:
version-1 version-2 version-10
-
ALPHANUMERIC
public static final FilePattern.Sort ALPHANUMERIC
Standard alphanumeric sorting.For example:
version-1 version-10 version-2
-
FLYWAY
public static final FilePattern.Sort FLYWAY
Flyway compatible sorting.
-
NONE
public static final FilePattern.Sort NONE
No explicit sorting (may be non deterministic, depending on the file system).
-
-
Method Detail
-
values
public static FilePattern.Sort[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FilePattern.Sort c : FilePattern.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilePattern.Sort valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
of
public static final FilePattern.Sort of(String sort)
-
-