Class AbstractIterableGetMapDecorator<K,​V>

  • All Implemented Interfaces:
    Get<K,​V>, IterableGet<K,​V>
    Direct Known Subclasses:
    TransformedSplitMap

    public class AbstractIterableGetMapDecorator<K,​V>
    extends java.lang.Object
    implements IterableGet<K,​V>
    IterableGet that uses a Map for the Get implementation.
    Since:
    4.0
    Version:
    $Id: AbstractIterableGetMapDecorator.java 1686855 2015-06-22 13:00:27Z tn $
    • Constructor Detail

      • AbstractIterableGetMapDecorator

        public AbstractIterableGetMapDecorator​(java.util.Map<K,​V> map)
        Create a new AbstractSplitMapDecorator.
        Parameters:
        map - the map to decorate, must not be null
        Throws:
        java.lang.NullPointerException - if map is null
      • AbstractIterableGetMapDecorator

        protected AbstractIterableGetMapDecorator()
        Constructor only used in deserialization, do not use otherwise.
    • Method Detail

      • decorated

        protected java.util.Map<K,​V> decorated()
        Gets the map being decorated.
        Returns:
        the decorated map
      • containsKey

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

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface Get<K,​V>
        See Also:
        Map.containsValue(Object)
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Specified by:
        entrySet in interface Get<K,​V>
        See Also:
        Map.entrySet()
      • get

        public V get​(java.lang.Object key)
        Specified by:
        get in interface Get<K,​V>
        See Also:
        Map.get(Object)
      • remove

        public V remove​(java.lang.Object key)
        Specified by:
        remove in interface Get<K,​V>
        See Also:
        Map.remove(Object)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Get<K,​V>
        See Also:
        Map.isEmpty()
      • keySet

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface Get<K,​V>
        See Also:
        Map.keySet()
      • size

        public int size()
        Specified by:
        size in interface Get<K,​V>
        See Also:
        Map.size()
      • values

        public java.util.Collection<V> values()
        Specified by:
        values in interface Get<K,​V>
        See Also:
        Map.values()
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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