- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.String>, java.util.NavigableMap<org.eclipse.emf.ecore.EObject,java.lang.String>, java.util.SortedMap<org.eclipse.emf.ecore.EObject,java.lang.String>
public class ValueComparableEObjectStringMap
extends java.util.TreeMap<org.eclipse.emf.ecore.EObject,java.lang.String>
This custom TreeMap
implementation enables to store EObject
-String
pairs sorted by values
(strings). It works as expected if the map is modified in any way, hence the map will still be sorted by values on
the new set of entries.
It is allowed to have two entries with the same EObject key (and also with same values).
The short coming of the class is that EObjects are compared to each other by their
System.identityHashCode(Object)
, which may lead to unexpected errors.
- See Also:
- Serialized Form