public static class AbstractMapPro.SimpleEntry<K,V> extends Object implements Map.Entry<K,V>, Serializable
Constructor and Description |
---|
AbstractMapPro.SimpleEntry(K key,
V value)
Creates an entry representing a mapping from the specified
key to the specified value.
|
AbstractMapPro.SimpleEntry(Map.Entry<? extends K,? extends V> entry)
Creates an entry representing the same mapping as the
specified entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K |
getKey()
Returns the key corresponding to this entry.
|
V |
getValue()
Returns the value corresponding to this entry.
|
int |
hashCode() |
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified
value.
|
String |
toString()
Returns a String representation of this map entry.
|
public AbstractMapPro.SimpleEntry(K key, V value)
key
- the key represented by this entryvalue
- the value represented by this entrypublic AbstractMapPro.SimpleEntry(Map.Entry<? extends K,? extends V> entry)
entry
- the entry to copypublic V setValue(V value)
public int hashCode()
Copyright © 2015 Lucee