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).
|
public K getKey()
public V getValue()
public V setValue(V value)
UnsupportedOperationException
.public boolean equals(Object object)
Copyright © 2006–2015 GeoSolutions. All rights reserved.