org.openanzo.util
Class SingleElementIterator<T>

java.lang.Object
  extended by org.openanzo.util.SingleElementIterator<T>
Type Parameters:
T - Type of value within the iterator
All Implemented Interfaces:
java.util.Iterator<T>

public class SingleElementIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Iterator for single values

Author:
Lee Feigenbaum ( feigenbl@us.ibm.com )

Constructor Summary
SingleElementIterator(T element)
          Create an Iterator for a single value
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleElementIterator

public SingleElementIterator(T element)
Create an Iterator for a single value

Parameters:
element - element to provide via iterate
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.