Package org.locationtech.jts.jump.util
Class OrderedMap
- java.lang.Object
-
- org.locationtech.jts.jump.util.OrderedMap
-
-
Constructor Summary
Constructors Constructor Description OrderedMap()
Creates an OrderedMap.OrderedMap(List keyList, Map map)
Creates an OrderedMap backed by the given map.OrderedMap(Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set
entrySet()
boolean
equals(Object o)
Object
get(Object key)
boolean
isEmpty()
List
keyList()
Returns the keys, in order.Set
keySet()
Object
put(Object key, Object value)
void
putAll(Map t)
Object
remove(Object key)
int
size()
List
valueList()
Returns the values.Collection
values()
Returns the values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap
-
keyList
public List keyList()
Returns the keys, in order.- Returns:
- the keys in the order they were (first) added
-
valueList
public List valueList()
Returns the values.- Returns:
- the values in the same order as the keys
- See Also:
keyList()
-
values
public Collection values()
Returns the values.
-
-