|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- V
- public interface Mapped<K,V>
Interface for containers that associate keys with values.
Method Summary | |
---|---|
Holder<V> |
find(K key)
Return a Holder containing the value associated wth the key or an empty Holder if no value is associated with the key. |
V |
get(K key)
Return the value associated with key or null if no value is associated. |
V |
getValueOr(K key,
V defaultValue)
Return the value associated with key or defaultValue if no value is associated. |
Method Detail |
---|
@Nullable V get(K key)
key
- identifies the value to retrieve
V getValueOr(K key, V defaultValue)
key
- identifies the value to retrievedefaultValue
- value to return if no entry exists for key
@Nonnull Holder<V> find(K key)
key
- identifies the value to retrieve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |