Serializable, Comparable<PathType>public enum PathType extends Enum<PathType>
| 枚举常量 | 说明 |
|---|---|
AUTO |
The system-dependent for concat paths.
|
AUTO_WIN |
The system-dependent for concat paths.
|
UNIX_LIKE |
Path for Unix-like systems. it will use
'/' as files separator. |
WIN |
Path for Windows systems. it will use
'\' as files separator, and will transform all '/' to '\'. |
WIN_SLASH |
Path for Windows systems. it will use
'/' as files separator, and will transform all '\' to '/'. |
public static final PathType UNIX_LIKE
'/' as files separator. '/' 作为文件之间的分隔符。public static final PathType WIN
'\' as files separator, and will transform all '/' to '\'. '\' 作为文件之间的分隔符,会将所有 '/' 转换成 '\'。public static final PathType WIN_SLASH
'/' as files separator, and will transform all '\' to '/'. '/' 作为文件之间的分隔符,会将所有 '\' 转换成 '/'。public static final PathType AUTO
public static final PathType AUTO_WIN
public static PathType[] values()
for (PathType c : PathType.values()) System.out.println(c);
public static PathType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.