Modifier and Type | Method | 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() |
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()
Copyright © 2014–2019. All rights reserved.