Class AbstractDualBidiMap.View<K,​V,​E>

    • Constructor Detail

      • View

        protected View​(java.util.Collection<E> coll,
                       AbstractDualBidiMap<K,​V> parent)
        Constructs a new view of the BidiMap.
        Parameters:
        coll - the collection view being decorated
        parent - the parent BidiMap
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Specified by:
        equals in interface java.util.Collection<K>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<K>
        Overrides:
        hashCode in class java.lang.Object
      • removeIf

        public boolean removeIf​(java.util.function.Predicate<? super E> filter)
        Specified by:
        removeIf in interface java.util.Collection<K>
        Overrides:
        removeIf in class AbstractCollectionDecorator<E>
        Since:
        4.4
      • removeAll

        public boolean removeAll​(java.util.Collection<?> coll)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Overrides:
        removeAll in class AbstractCollectionDecorator<E>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> coll)

        This implementation iterates over the elements of this bidi map, checking each element in turn to see if it's contained in coll. If it's not contained, it's removed from this bidi map. As a consequence, it is advised to use a collection type for coll that provides a fast (e.g. O(1)) implementation of Collection.contains(Object).

        Specified by:
        retainAll in interface java.util.Collection<K>
        Overrides:
        retainAll in class AbstractCollectionDecorator<E>