K
- the type of the key obtained from the enum valuesE
- the type of the enumpublic interface KeyAccessor<K,E extends Enum<E>>
Functional interface to retrieve a key K
from an enum E
.
The key is typically used to build a mapping between keys and enum constants.
Modifier and Type | Method and Description |
---|---|
K |
getKey(E e)
Retrieves a key
K from an enum E . |
Copyright © 2020. All Rights Reserved.