Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.collections.bidimap
Class TreeBidiMap.View  view TreeBidiMap.View download TreeBidiMap.View.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byorg.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.
 
Constructor Summary
(package private) TreeBidiMap.View(TreeBidiMap main, int orderType, int dataType)
          Constructor.
 
Method Summary
 void clear()
          Removes all elements from this set (optional operation).
 boolean contains(java.lang.Object obj)
          Returns true if the set contains the specified element.
 java.util.Iterator iterator()
          Returns an iterator over the set.
 boolean remove(java.lang.Object obj)
          Removes the specified element from this set (optional operation).
 int size()
          Returns the number of elements in the set.
 
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.Set
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray
 

Field Detail

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.

Constructor Detail

TreeBidiMap.View

TreeBidiMap.View(TreeBidiMap main,
                 int orderType,
                 int dataType)
Constructor.

Method Detail

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.