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