Class Internal.MapAdapter<K,​V,​RealValue>

  • All Implemented Interfaces:
    java.util.Map<K,​V>
    Enclosing class:
    Internal

    public static class Internal.MapAdapter<K,​V,​RealValue>
    extends java.util.AbstractMap<K,​V>
    Wrap around a Map<K, RealValue> and provide a Map<K, V> interface.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Internal.MapAdapter.Converter<A,​B>
      An interface used to convert between two types.
      • 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>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()  
      V get​(java.lang.Object key)  
      static <T extends Internal.EnumLite>
      Internal.MapAdapter.Converter<java.lang.Integer,​T>
      newEnumConverter​(Internal.EnumLiteMap<T> enumMap, T unrecognizedValue)  
      V put​(K key, V value)  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
      • Methods inherited from class java.lang.Object

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

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Method Detail

      • get

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

        public V put​(K key,
                     V value)
        Specified by:
        put in interface java.util.Map<K,​V>
        Overrides:
        put in class java.util.AbstractMap<K,​V>
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​V>
        Specified by:
        entrySet in class java.util.AbstractMap<K,​V>