com.metamatrix.query.sql.lang
Class CollectionValueIterator

java.lang.Object
  extended by com.metamatrix.query.sql.lang.CollectionValueIterator
All Implemented Interfaces:
ValueIterator

public class CollectionValueIterator
extends java.lang.Object
implements ValueIterator


Constructor Summary
CollectionValueIterator(java.util.Collection vals)
           
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more values.
 java.lang.Object next()
          Returns the next Expression or Object value in the interation.
 void reset()
          Optional reset method - allows a single instance of a ValueIterator implementation to be resettable, such that the next call to next returns the first element in the iteration (if any).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionValueIterator

public CollectionValueIterator(java.util.Collection vals)
Method Detail

hasNext

public boolean hasNext()
                throws MetaMatrixComponentException
Description copied from interface: ValueIterator
Returns true if the iteration has more values. (In other words, returns true if next would return a value rather than throwing an exception.)

Specified by:
hasNext in interface ValueIterator
Returns:
true if this ValueIterator has more values.
Throws:
MetaMatrixComponentException - indicating a non business- related Exception such as a service or bean being unavailable, or a communication failure.
Since:
4.3
See Also:
ValueIterator.hasNext()

next

public java.lang.Object next()
                      throws MetaMatrixComponentException
Description copied from interface: ValueIterator
Returns the next Expression or Object value in the interation.

Specified by:
next in interface ValueIterator
Returns:
the next Expression or Object value in the iteration.
Throws:
MetaMatrixComponentException - indicating a non business- related Exception such as a service or bean being unavailable, or a communication failure.
Since:
4.3
See Also:
ValueIterator.next()

reset

public void reset()
Description copied from interface: ValueIterator
Optional reset method - allows a single instance of a ValueIterator implementation to be resettable, such that the next call to next returns the first element in the iteration (if any). This method should be able to be called at any point during the lifecycle of a ValueIterator instance.

Specified by:
reset in interface ValueIterator
Since:
4.3
See Also:
ValueIterator.reset()


Copyright © 2009. All Rights Reserved.