java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
org.apache.commons.collections.bidimap.TreeBidiMap.View
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.Set
- Direct Known Subclasses:
- TreeBidiMap.EntryView
- Enclosing class:
- TreeBidiMap
- static class TreeBidiMap.View
- extends java.util.AbstractSet
A view of this map.
|
Field Summary |
protected int |
dataType
Whether to return KEY, VALUE, MAPENTRY or INVERSEMAPENTRY data. |
protected TreeBidiMap |
main
The parent map. |
protected int |
orderType
Whether to return KEY or VALUE order. |
main
protected final TreeBidiMap main
- The parent map.
orderType
protected final int orderType
- Whether to return KEY or VALUE order.
dataType
protected final int dataType
- Whether to return KEY, VALUE, MAPENTRY or INVERSEMAPENTRY data.
TreeBidiMap.View
TreeBidiMap.View(TreeBidiMap main,
int orderType,
int dataType)
- Constructor.
iterator
public java.util.Iterator iterator()
- Description copied from interface:
java.util.Set
- Returns an iterator over the set. The iterator has no specific order,
unless further specified.
size
public int size()
- Description copied from interface:
java.util.Set
- Returns the number of elements in the set. If there are more
than Integer.MAX_VALUE mappings, return Integer.MAX_VALUE. This is
the cardinality of the set.
contains
public boolean contains(java.lang.Object obj)
- Description copied from interface:
java.util.Set
- Returns true if the set contains the specified element. In other words,
this looks for
o == null ? e == null : o.equals(e).
remove
public boolean remove(java.lang.Object obj)
- Description copied from interface:
java.util.Set
- Removes the specified element from this set (optional operation). If
an element e exists,
o == null ? e == null : o.equals(e),
it is removed from the set.
clear
public void clear()
- Description copied from interface:
java.util.Set
- Removes all elements from this set (optional operation). This set will
be empty afterwords, unless an exception occurs.