edu.emory.mathcs.util.collections.longs
Interface LongMap.Entry

Enclosing interface:
LongMap

public static interface LongMap.Entry

Represents the mapping from a long key to an object value. Returned by entrySet().iterator(). The returned entry becomes invalid (i.e. its behavior is no longer guaranteed) if the map is modified in a way other than via iterator.remove() or entry.setValue().


Method Summary
 boolean equals(java.lang.Object o)
           
 long getKey()
          Returns the key associated with this entry.
 java.lang.Object getValue()
          Returns the value associated with this entry.
 int hashCode()
           
 java.lang.Object setValue(java.lang.Object value)
          Assigns a new value to the given key, and returns the old value.
 

Method Detail

getKey

public long getKey()
Returns the key associated with this entry.


getValue

public java.lang.Object getValue()
Returns the value associated with this entry.


setValue

public java.lang.Object setValue(java.lang.Object value)
Assigns a new value to the given key, and returns the old value.


equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()