Class TreeBidiMap.View
java.lang.Object
java.util.AbstractCollection<E>
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 int
Whether to return KEY, VALUE, MAPENTRY or INVERSEMAPENTRY data.protected final TreeBidiMap
The parent map.protected final int
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, 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
Methods 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:
iterator
in interfaceCollection
- Specified by:
iterator
in interfaceIterable
- Specified by:
iterator
in interfaceSet
- Specified by:
iterator
in classAbstractCollection
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
- Specified by:
size
in classAbstractCollection
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
- Overrides:
contains
in classAbstractCollection
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceSet
- Overrides:
remove
in classAbstractCollection
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceSet
- Overrides:
clear
in classAbstractCollection
-