| 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() |
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()
Copyright © 2013–2018 AssertJ. All rights reserved.