Package helma.util
Class SystemMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
helma.util.SystemMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
Map class used internally by Helma. We use this class to be able to
wrap maps as native objects within a scripting engine rather
than exposing them through Java reflection.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
append
(StringBuffer buf, Object obj) Display an object in a human friendly way, paying attention to avoid infinite recursion.toString()
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Constructor Details
-
SystemMap
public SystemMap()Construct an empty SystemMap. -
SystemMap
public SystemMap(int initialCapacity) Construct an empty SystemMap with the given initial capacity. -
SystemMap
Construct a SystemMap with the contents of Map map.
-
-
Method Details
-
toString
- Overrides:
toString
in classAbstractMap
- Returns:
- A String representation of this map. The returned string is similar to the one returned by java.util.HashMap.toString(), but additionally displays Object arrays in a human friendly way.
-
append
Display an object in a human friendly way, paying attention to avoid infinite recursion.
-