Class Maps.FilteredMapValues<K,​V>

  • All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>
    Enclosing class:
    Maps

    private static final class Maps.FilteredMapValues<K,​V>
    extends Maps.Values<K,​V>
    • 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
      FilteredMapValues​(java.util.Map<K,​V> filteredMap, 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
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> collection)  
      boolean retainAll​(java.util.Collection<?> collection)  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] array)  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, containsAll, toString
      • Methods inherited from class java.lang.Object

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

        equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
    • Field Detail

      • unfiltered

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

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

      • FilteredMapValues

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

      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<K>
        Overrides:
        remove in class Maps.Values<K,​V>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Overrides:
        removeAll in class Maps.Values<K,​V>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> collection)
        Specified by:
        retainAll in interface java.util.Collection<K>
        Overrides:
        retainAll in class Maps.Values<K,​V>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<K>
        Overrides:
        toArray in class java.util.AbstractCollection<V>
      • toArray

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<K>
        Overrides:
        toArray in class java.util.AbstractCollection<V>