public class CollectionValueIterator extends Object implements ValueIterator
Constructor and Description |
---|
CollectionValueIterator(Collection vals) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iteration has more values.
|
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). |
public CollectionValueIterator(Collection vals)
public boolean hasNext() throws TeiidComponentException
ValueIterator
hasNext
in interface ValueIterator
TeiidComponentException
- indicating a non business-
related Exception such as a service or bean being unavailable, or
a communication failure.ValueIterator.hasNext()
public Object next() throws TeiidComponentException
ValueIterator
next
in interface ValueIterator
TeiidComponentException
- indicating a non business-
related Exception such as a service or bean being unavailable, or
a communication failure.ValueIterator.next()
public void reset()
ValueIterator
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.reset
in interface ValueIterator
ValueIterator.reset()
Copyright © 2019. All rights reserved.