Package com.github.tommyettinger.ds
Class EnumMap.Entry<V>
java.lang.Object
com.github.tommyettinger.ds.EnumMap.Entry<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
-
value
-
-
Constructor Details
-
Entry
public Entry() -
Entry
-
Entry
-
-
Method Details
-
toString
-
getKey
Returns the key corresponding to this entry.- Specified by:
getKeyin interfaceMap.Entry<Enum<?>,V> - Returns:
- the key corresponding to this entry
- Throws:
IllegalStateException- implementations may, but are not required to, throw this exception if the entry has been removed from the backing map.
-
getValue
Returns the value corresponding to this entry. If the mapping has been removed from the backing map (by the iterator'sremoveoperation), the results of this call are undefined.- Specified by:
getValuein interfaceMap.Entry<Enum<?>,V> - Returns:
- the value corresponding to this entry
- Throws:
IllegalStateException- implementations may, but are not required to, throw this exception if the entry has been removed from the backing map.
-
setValue
Sets the value of this Entry, but does not write through to the containing EnumMap. -
equals
-
hashCode
public int hashCode()
-