protected static final class Enumeration.ValueSet<T extends Enumeration<T>> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
get(int id)
根据整数码值获取枚举对象
|
Collection<T> |
getValues()
获取所有枚举对象
|
static <T extends Enumeration<T>> |
of(T[] values)
创建枚举值集合
|
public static <T extends Enumeration<T>> Enumeration.ValueSet<T> of(T[] values)
T - 枚举类型values - 枚举值public T get(int id)
id - 整数码public Collection<T> getValues()
Copyright © 2026. All rights reserved.