Modifier and Type | Method and Description |
---|---|
static <K,V> MapEntry<K,V> |
entry(K key,
V value)
Creates a new
MapEntry . |
boolean |
equals(Object object) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
V |
setValue(V value)
Always throws
UnsupportedOperationException as this class represents an immutable map entry. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public static <K,V> MapEntry<K,V> entry(K key, V value)
MapEntry
.K
- the type of the key of this entry.V
- the type of the value of this entry.key
- the key of the entry to create.value
- the value of the entry to create.MapEntry
.public boolean equals(Object object)
public int hashCode()
public V setValue(V value)
UnsupportedOperationException
as this class represents an immutable map entry.setValue
in interface Map.Entry<K,V>
value
- ignoredUnsupportedOperationException
- alwaysCopyright © 2014–2019 AssertJ. All rights reserved.