Class TreeBidiMap.View
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
org.apache.commons.collections.bidimap.TreeBidiMap.View
- All Implemented Interfaces:
Iterable,Collection,Set
- Direct Known Subclasses:
TreeBidiMap.EntryView
- Enclosing class:
TreeBidiMap
A view of this map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intWhether to return KEY, VALUE, MAPENTRY or INVERSEMAPENTRY data.protected final TreeBidiMapThe parent map.protected final intWhether 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, containsAll, isEmpty, 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, streamMethods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Field Details
-
main
The parent map. -
orderType
protected final int orderTypeWhether to return KEY or VALUE order. -
dataType
protected final int dataTypeWhether to return KEY, VALUE, MAPENTRY or INVERSEMAPENTRY data.
-
-
Constructor Details
-
View
View(TreeBidiMap main, int orderType, int dataType) Constructor.- Parameters:
main- the main maporderType- the KEY or VALUE int for the orderdataType- the KEY, VALUE, MAPENTRY or INVERSEMAPENTRY int
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Specified by:
iteratorin classAbstractCollection
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Specified by:
sizein classAbstractCollection
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollection
-