Class AbstractDualBidiMap.KeySet<K>

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

    protected static class AbstractDualBidiMap.KeySet<K>
    extends AbstractDualBidiMap.View<K,​java.lang.Object,​K>
    implements java.util.Set<K>
    Inner class KeySet.
    See Also:
    Serialized Form
    • Constructor Detail

      • KeySet

        protected KeySet​(AbstractDualBidiMap<K,​?> parent)
        Constructs a new view of the BidiMap.
        Parameters:
        parent - the parent BidiMap
    • Method Detail

      • 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 AbstractCollectionDecorator<K>
      • contains

        public boolean contains​(java.lang.Object key)
        Specified by:
        contains in interface java.util.Collection<K>
        Specified by:
        contains in interface java.util.Set<K>
        Overrides:
        contains in class AbstractCollectionDecorator<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 AbstractCollectionDecorator<K>