public enum StorageType extends Enum<StorageType>
| 枚举常量和说明 |
|---|
FreeStyle
文件Key是字母和数字的任意组合,并基于Key的最后两位字符构造存储目录结构。
|
TimeStamp
文件Key是时间戳,并基于时间戳构造存储目录结构
|
UUID
文件Key是UUID,并基于UUID构造存储目录结构
|
public static final StorageType UUID
public static final StorageType TimeStamp
public static final StorageType FreeStyle
public static StorageType[] values()
for (StorageType c : StorageType.values()) System.out.println(c);
public static StorageType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionNullPointerException - 如果参数为空值, 则抛出 NullPointerExceptionCopyright © 2018. All rights reserved.