Class TreeBidiMap.View<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.apache.commons.collections4.bidimap.TreeBidiMap.View<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
TreeBidiMap.EntryView,TreeBidiMap.InverseEntryView,TreeBidiMap.KeyView,TreeBidiMap.ValueView
- Enclosing class:
- TreeBidiMap<K extends Comparable<K>,V extends Comparable<V>>
abstract class TreeBidiMap.View<E> extends AbstractSet<E>
A view of this map.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TreeBidiMap.DataElementorderTypeWhether to return KEY or VALUE order.
-
Constructor Summary
Constructors Constructor Description View(TreeBidiMap.DataElement orderType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, isEmpty, iterator, remove, 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
-
-
-
-
Field Detail
-
orderType
final TreeBidiMap.DataElement orderType
Whether to return KEY or VALUE order.
-
-
Constructor Detail
-
View
View(TreeBidiMap.DataElement orderType)
Constructor.- Parameters:
orderType- the KEY or VALUE int for the order
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceSet<E>- Overrides:
clearin classAbstractCollection<E>
-
-