Class AbstractMapEntry<K,V>
- java.lang.Object
- 
- org.apache.openjpa.lib.util.collections.AbstractKeyValue<K,V>
- 
- org.apache.openjpa.lib.util.collections.AbstractMapEntry<K,V>
 
 
- 
- Type Parameters:
- K- the type of keys
- V- the type of mapped values
 - All Implemented Interfaces:
- java.util.Map.Entry<K,V>,- KeyValue<K,V>
 - Direct Known Subclasses:
- DefaultMapEntry,- UnmodifiableMapEntry
 
 public abstract class AbstractMapEntry<K,V> extends AbstractKeyValue<K,V> implements java.util.Map.Entry<K,V> Abstract Pair class to assist with creating correctMap.Entryimplementations.- Since:
- 3.0
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractMapEntry(K key, V value)Constructs a new entry with the given key and given value.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares thisMap.Entrywith anotherMap.Entry.inthashCode()Gets a hashCode compatible with the equals method.VsetValue(V value)Sets the value stored in thisMap.Entry.- 
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractKeyValuegetKey, getValue, setKey, toString
 
- 
 
- 
- 
- 
Method Detail- 
setValuepublic V setValue(V value) Sets the value stored in thisMap.Entry.This Map.Entryis not connected to a Map, so only the local data is changed.
 - 
equalspublic boolean equals(java.lang.Object obj) Compares thisMap.Entrywith anotherMap.Entry.Implemented per API documentation of Map.Entry.equals(Object)
 
- 
 
-