Package org.jboss.util.collection
Class ConcurrentSkipListMap.SnapshotEntry<K,V>
- java.lang.Object
-
- org.jboss.util.collection.ConcurrentSkipListMap.SnapshotEntry<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- ConcurrentSkipListMap<K,V>
static class ConcurrentSkipListMap.SnapshotEntry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
An immutable representation of a key-value mapping as it existed at some point in time. This class does not support the Map.Entry.setValue method.
-
-
Constructor Summary
Constructors Constructor Description SnapshotEntry(K key, V value)
Creates a new entry representing the given key and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.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)
Always fails, throwing UnsupportedOperationException.java.lang.String
toString()
Returns a String consisting of the key followed by an equals sign ("=") followed by the associated value.
-
-
-
Method Detail
-
getKey
public K getKey()
Returns the key corresponding to this entry.
-
getValue
public V getValue()
Returns the value corresponding to this entry.
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
Returns a String consisting of the key followed by an equals sign ("=") followed by the associated value.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a String representation of this entry.
-
-