Class TreeBidiMap.EntryView

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, java.util.Set
    Enclosing class:
    TreeBidiMap

    static class TreeBidiMap.EntryView
    extends TreeBidiMap.View
    A view of this map.
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryView​(TreeBidiMap main, int orderType, int dataType)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.Object obj)  
      boolean remove​(java.lang.Object obj)  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

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

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        add, addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
    • Field Detail

      • oppositeType

        private final int oppositeType
    • Constructor Detail

      • EntryView

        EntryView​(TreeBidiMap main,
                  int orderType,
                  int dataType)
        Constructor.
        Parameters:
        main - the main map
        orderType - the KEY or VALUE int for the order
        dataType - the MAPENTRY or INVERSEMAPENTRY int for the returned data
    • Method Detail

      • contains

        public boolean contains​(java.lang.Object obj)
        Specified by:
        contains in interface java.util.Collection
        Specified by:
        contains in interface java.util.Set
        Overrides:
        contains in class TreeBidiMap.View
      • remove

        public boolean remove​(java.lang.Object obj)
        Specified by:
        remove in interface java.util.Collection
        Specified by:
        remove in interface java.util.Set
        Overrides:
        remove in class TreeBidiMap.View