org.biopax.paxtools.util
Class AbstractSingleElementSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by org.biopax.paxtools.util.AbstractSingleElementSet
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set

public abstract class AbstractSingleElementSet
extends java.util.AbstractSet


Constructor Summary
AbstractSingleElementSet()
           
 
Method Summary
protected abstract  java.lang.Object getValue()
           
 java.util.Iterator iterator()
           
protected abstract  void removeValue()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, 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, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

AbstractSingleElementSet

public AbstractSingleElementSet()
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

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

getValue

protected abstract java.lang.Object getValue()

removeValue

protected abstract void removeValue()