Class Maps.AbstractFilteredMap<K,​V>

    • 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>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Predicate<? super java.util.Map.Entry<K,​V>> predicate  
      (package private) java.util.Map<K,​V> unfiltered  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFilteredMap​(java.util.Map<K,​V> unfiltered, Predicate<? super java.util.Map.Entry<K,​V>> predicate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean apply​(java.lang.Object key, V value)  
      boolean containsKey​(java.lang.Object key)  
      (package private) java.util.Collection<V> createValues()  
      V get​(java.lang.Object key)  
      boolean isEmpty()  
      V put​(K key, V value)  
      void putAll​(java.util.Map<? extends K,​? extends V> map)  
      V remove​(java.lang.Object key)  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsValue, equals, hashCode, size, toString
      • 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
    • Field Detail

      • unfiltered

        final java.util.Map<K,​V> unfiltered
      • predicate

        final Predicate<? super java.util.Map.Entry<K,​V>> predicate
    • Constructor Detail

      • AbstractFilteredMap

        AbstractFilteredMap​(java.util.Map<K,​V> unfiltered,
                            Predicate<? super java.util.Map.Entry<K,​V>> predicate)
    • Method Detail

      • apply

        boolean apply​(@Nullable
                      java.lang.Object key,
                      @Nullable
                      V value)
      • 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>
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends V> map)
        Specified by:
        putAll in interface java.util.Map<K,​V>
        Overrides:
        putAll in class java.util.AbstractMap<K,​V>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​V>
        Overrides:
        containsKey in class java.util.AbstractMap<K,​V>
      • 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>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
        Overrides:
        isEmpty in class java.util.AbstractMap<K,​V>
      • remove

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