-
- Type Parameters:
K- key type
- All Known Subinterfaces:
AdaptedKeyValue<S,K,O,V>,DefaultAdaptedKeyValue<S,K,O,V>,DefaultKeyValue<S,K,V>,KeyValue<S,K,V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface KeyHolder<K>
Represents an association with a key.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Kkey()Gets the key.
-
-
-
Method Detail
-
key
K key()
Gets the key. The same key should always be returned.- Returns:
- the key
-
-