Class AbstractBiMap.KeySet

  • All Implemented Interfaces:
    java.lang.Iterable<K>, java.util.Collection<K>, java.util.Set<K>
    Enclosing class:
    AbstractBiMap<K,​V>

    private class AbstractBiMap.KeySet
    extends ForwardingSet<K>
    • Constructor Detail

      • KeySet

        private KeySet()
    • Method Detail

      • delegate

        protected java.util.Set<K> delegate()
        Description copied from class: ForwardingObject
        Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
        Specified by:
        delegate in class ForwardingSet<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.Set<K>
        Overrides:
        clear in class ForwardingCollection<K>
      • remove

        public boolean remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Collection<K>
        Specified by:
        remove in interface java.util.Set<K>
        Overrides:
        remove in class ForwardingCollection<K>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> keysToRemove)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Specified by:
        removeAll in interface java.util.Set<K>
        Overrides:
        removeAll in class ForwardingCollection<K>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> keysToRetain)
        Specified by:
        retainAll in interface java.util.Collection<K>
        Specified by:
        retainAll in interface java.util.Set<K>
        Overrides:
        retainAll in class ForwardingCollection<K>
      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface java.util.Set<K>
        Overrides:
        iterator in class ForwardingCollection<K>