Enum PathMetaSort
- java.lang.Object
-
- java.lang.Enum<PathMetaSort>
-
- me.insidezhou.southernquiet.filesystem.PathMetaSort
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathMetaSort>
public enum PathMetaSort extends java.lang.Enum<PathMetaSort>
使用路径的哪个元信息进行排序。
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CreationTimeCreationTimeDescIsDirectoryIsDirectoryDescLastAccessTimeLastAccessTimeDescLastModifiedTimeLastModifiedTimeDescNameNameDescSizeSizeDesc
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathMetaSortvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PathMetaSort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Name
public static final PathMetaSort Name
-
IsDirectory
public static final PathMetaSort IsDirectory
-
CreationTime
public static final PathMetaSort CreationTime
-
LastModifiedTime
public static final PathMetaSort LastModifiedTime
-
LastAccessTime
public static final PathMetaSort LastAccessTime
-
Size
public static final PathMetaSort Size
-
NameDesc
public static final PathMetaSort NameDesc
-
IsDirectoryDesc
public static final PathMetaSort IsDirectoryDesc
-
CreationTimeDesc
public static final PathMetaSort CreationTimeDesc
-
LastModifiedTimeDesc
public static final PathMetaSort LastModifiedTimeDesc
-
LastAccessTimeDesc
public static final PathMetaSort LastAccessTimeDesc
-
SizeDesc
public static final PathMetaSort SizeDesc
-
-
Method Detail
-
values
public static PathMetaSort[] 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 (PathMetaSort c : PathMetaSort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathMetaSort valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-