public static final class UberMaps.Entry<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>, java.util.function.Predicate<java.util.Map<K,V>>, java.lang.Cloneable
Immutable implementation of Map.Entry.
Entry also implements Predicate of a map, and tests whether specified map contains an entry
like this one: test(Map).
UberMaps.entry(Object, Object)| Modifier and Type | Method and Description |
|---|---|
java.util.Map.Entry<K,V> |
clone() |
boolean |
equals(java.lang.Object obj) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
K |
key()
Equal to
getKey() |
V |
setValue(V value) |
static <K,V> java.util.function.Function<UberMaps.Entry<K,V>,UberMaps.Entry<V,K>> |
swap() |
boolean |
test(java.util.Map<K,V> t)
Method returns true is specified map contains the key,
and the value is equal to the one returned by the map.
|
java.lang.String |
toString() |
V |
val()
Equal to
getValue() |
finalize, getClass, notify, notifyAll, wait, wait, waitpublic V val()
getValue()public boolean test(java.util.Map<K,V> t)
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString in class java.lang.Objectpublic static <K,V> java.util.function.Function<UberMaps.Entry<K,V>,UberMaps.Entry<V,K>> swap()