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.DataElement
Whether to return KEY or VALUE order. -
Constructor Summary
Constructors -
Method Summary
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
-
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:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceSet<E>
- Overrides:
clear
in classAbstractCollection<E>
-