E - enum typeK - code type of enumpublic interface IPersistableConfigSubKeyEnum<E extends Enum & IConfigSubKey,K>
persistable enum type (used by JPA pojo annotation for instance), must implement IDescriptive
usage:
public enum SexEnum implements IDescriptiveEnum<Character>, IPersistableDescriptiveEnum<SexEnum, Character> {
// implement IDescriptiveEnum's methods ...
@Override
public SexEnum returnEnum(Character persistedValue) {
return EnumObjectUtils.getByCode(SexEnum.class, persistedValue);
}
}
| Modifier and Type | Method and Description |
|---|---|
E |
returnEnum(K persistedValue)
persistable enum type
|
Copyright © 2018 com.github.avatar21. All rights reserved.