Class AbstractMapEntry<K,V>
java.lang.Object
org.apache.sis.internal.util.AbstractMapEntry<K,V>
- Type Parameters:
K- the type of keys maintained by the map.V- the type of mapped values.
- All Implemented Interfaces:
Map.Entry<K,V>
- Direct Known Subclasses:
CharacteristicMap.Entry, DefaultRecord.Entry, ValueMap.Property
- Since:
- 0.5
- Version:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified object with this entry for equality.(package private) static StringReturns only the first line of the string representation of the given value.inthashCode()Returns the hash code value for this map entry.Sets the value corresponding to this entry (optional operation).toString()Returns a string representation of this entry.
-
Constructor Details
-
AbstractMapEntry
protected AbstractMapEntry()For subclasses constructors.
-
-
Method Details
-
setValue
Sets the value corresponding to this entry (optional operation). The default implementation throwsUnsupportedOperationExceptionfor the convenience of unmodifiable map implementations.- Specified by:
setValuein interfaceMap.Entry<K,V> - Parameters:
value- the new value to be stored in this entry.- Returns:
- the previous value (may be
null). - Throws:
UnsupportedOperationException- if this entry is unmodifiable.
-
equals
-
hashCode
-
toString
-
firstLine
-