Class UtilCodec.HtmlEncodingMapWrapper<K>

  • All Implemented Interfaces:
    Enclosing class:

    public static class UtilCodec.HtmlEncodingMapWrapper<K>
    extends java.lang.Object
    implements java.util.Map<K,​java.lang.Object>
    A simple Map wrapper class that will do HTML encoding. To be used for passing a Map to something that will expand Strings with it as a context, etc.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<K,​java.lang.Object>> entrySet()  
      java.lang.Object get​(java.lang.Object key)  
      static <K> UtilCodec.HtmlEncodingMapWrapper<K> getHtmlEncodingMapWrapper​(java.util.Map<K,​java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)  
      boolean isEmpty()  
      java.util.Set<K> keySet()  
      java.lang.Object put​(K key, java.lang.Object value)  
      void putAll​(java.util.Map<? extends K,​? extends java.lang.Object> arg0)  
      java.lang.Object remove​(java.lang.Object key)  
      void reset()  
      void setup​(java.util.Map<K,​java.lang.Object> mapToWrap, UtilCodec.SimpleEncoder encoder)  
      int size()  
      java.lang.String toString()  
      java.util.Collection<java.lang.Object> values()  
      • Methods inherited from class java.lang.Object

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

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • internalMap

        protected java.util.Map<K,​java.lang.Object> internalMap
    • Constructor Detail

      • HtmlEncodingMapWrapper

        protected HtmlEncodingMapWrapper()
    • Method Detail

      • reset

        public void reset()
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<K,​java.lang.Object>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​java.lang.Object>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​java.lang.Object>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<K,​java.lang.Object>
      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​java.lang.Object>
      • put

        public java.lang.Object put​(K key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map<K,​java.lang.Object>
      • remove

        public java.lang.Object remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<K,​java.lang.Object>
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends java.lang.Object> arg0)
        Specified by:
        putAll in interface java.util.Map<K,​java.lang.Object>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<K,​java.lang.Object>
      • keySet

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​java.lang.Object>
      • values

        public java.util.Collection<java.lang.Object> values()
        Specified by:
        values in interface java.util.Map<K,​java.lang.Object>
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​java.lang.Object>
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object