K
- The class of key elements.V
- The class of value elements.public class MapEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
Map.Entry
which map an arbitrary key-value pairs.
This entry is immutable by default.Constructor and Description |
---|
MapEntry(K key,
V value)
Creates a new map entry with the specified key-value pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares the specified object with this entry for equality.
|
K |
getKey()
Returns the key corresponding to this entry.
|
V |
getValue()
Returns the value corresponding to this entry.
|
int |
hashCode()
Returns the hash code value for this map entry
|
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified value (optional operation).
|
String |
toString()
Returns a string representation of this entry.
|
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public K getKey()
public V getValue()
public V setValue(V value)
UnsupportedOperationException
.public boolean equals(Object object)
public int hashCode()
Copyright © 1996–2019 Geotools. All rights reserved.