Package helma.util

Class SystemMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map

    public class SystemMap
    extends java.util.HashMap
    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:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemMap()
      Construct an empty SystemMap.
      SystemMap​(int initialCapacity)
      Construct an empty SystemMap with the given initial capacity.
      SystemMap​(java.util.Map map)
      Construct a SystemMap with the contents of Map map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void append​(java.lang.StringBuffer buf, java.lang.Object obj)
      Display an object in a human friendly way, paying attention to avoid infinite recursion.
      java.lang.String 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • SystemMap

        public SystemMap()
        Construct an empty SystemMap.
      • SystemMap

        public SystemMap​(int initialCapacity)
        Construct an empty SystemMap with the given initial capacity.
      • SystemMap

        public SystemMap​(java.util.Map map)
        Construct a SystemMap with the contents of Map map.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractMap
        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

        protected void append​(java.lang.StringBuffer buf,
                              java.lang.Object obj)
        Display an object in a human friendly way, paying attention to avoid infinite recursion.