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>>
A view of this map.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final TreeBidiMap.DataElementWhether to return KEY or VALUE order. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, contains, containsAll, isEmpty, iterator, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Field Details
-
orderType
Whether to return KEY or VALUE order.
-
-
Constructor Details
-
View
View(TreeBidiMap.DataElement orderType) Constructor.- Parameters:
orderType- the KEY or VALUE int for the order
-
-
Method Details
-
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>
-