common
Class IndexedSet.EmptyIndexedSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by common.IndexedSet.EmptyIndexedSet
All Implemented Interfaces:
IndexedSet, java.lang.Iterable, java.util.Collection, java.util.Set
Enclosing interface:
IndexedSet

public static class IndexedSet.EmptyIndexedSet
extends java.util.AbstractSet
implements IndexedSet


Nested Class Summary
 
Nested classes/interfaces inherited from interface common.IndexedSet
IndexedSet.EmptyIndexedSet
 
Field Summary
 
Fields inherited from interface common.IndexedSet
EMPTY_INDEXED_SET
 
Constructor Summary
IndexedSet.EmptyIndexedSet()
           
 
Method Summary
 boolean contains(java.lang.Object o)
           
 java.lang.Object get(int index)
          Returns the object with the specified index in this IndexedSet.
 int indexOf(java.lang.Object o)
          Returns the index of the given object in this IndexedSet, or -1 if this IndexedSet does not contain the given object.
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, 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.Set
add, addAll, clear, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

IndexedSet.EmptyIndexedSet

public IndexedSet.EmptyIndexedSet()
Method Detail

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.Set
Specified by:
size in class java.util.AbstractCollection

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.Set
Overrides:
contains in class java.util.AbstractCollection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.Set
Specified by:
iterator in class java.util.AbstractCollection

get

public java.lang.Object get(int index)
Description copied from interface: IndexedSet
Returns the object with the specified index in this IndexedSet.

Specified by:
get in interface IndexedSet

indexOf

public int indexOf(java.lang.Object o)
Description copied from interface: IndexedSet
Returns the index of the given object in this IndexedSet, or -1 if this IndexedSet does not contain the given object.

Specified by:
indexOf in interface IndexedSet