Package org.midheaven.collections
Interface Association.Entry<K,V>
- Enclosing interface:
Association<K,V>
public static interface Association.Entry<K,V>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> Association.Entry <K, V> entry(K key, V value) Creates aAssociation.Entry<K,from the given key and valueV> static <K,V> Association.Entry <K, V> Creates aAssociation.Entryfrom the givenMap.Entrykey()value()<Q> Association.Entry<Q, V> withKey(Q newKey) Creates a newAssociation.Entrywith the same value asthis, but mapped to te given key<W> Association.Entry<K, W> withValue(W newValue)
-
Method Details
-
entry
Creates aAssociation.Entry<K,from the given key and valueV> - Parameters:
key- the keyvalue- the value- Returns:
- the created
Association.Entry<K,V>
-
from
Creates aAssociation.Entryfrom the givenMap.Entry- Parameters:
entry- the entry- Returns:
- the created
Association.Entry<K,V>
-
key
K key()- Returns:
- the entries' key
-
value
V value()- Returns:
- the entries' value
-
withKey
Creates a newAssociation.Entrywith the same value asthis, but mapped to te given key -
withValue
-