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 voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)SetentrySet()booleanequals(Object o)Objectget(Object key)booleanisEmpty()ListkeyList()Returns the keys, in order.SetkeySet()Objectput(Object key, Object value)voidputAll(Map t)Objectremove(Object key)intsize()ListvalueList()Returns the values.Collectionvalues()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:
containsKeyin interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein 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.
-
-