org.ow2.jonas.lib.ejb21.jorm
Class GenClassImpl.ElementIterator
java.lang.Object
org.ow2.jonas.lib.ejb21.jorm.GenClassImpl.ElementIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- GenClassImpl
protected class GenClassImpl.ElementIterator
- extends Object
- implements Iterator
this class is an implementation of the Iterator interface which return
only the existing objects. The return elements are dereferenced, then
PObject instances.
Method Summary |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Object |
next()
Returns the next element in the interation. |
void |
remove()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenClassImpl.ElementIterator
public GenClassImpl.ElementIterator(GenClassImpl gc,
Object connection)
reset
public void reset()
hasNext
public boolean hasNext()
- Returns true if the iteration has more elements. (In other
words, returns true if next would return an element
rather than throwing an exception.)
- Specified by:
hasNext
in interface Iterator
- Returns:
- true if the iterator has more elements.
next
public Object next()
- Returns the next element in the interation.
- Specified by:
next
in interface Iterator
- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException
- iteration has no more elements.
remove
public void remove()
- Specified by:
remove
in interface Iterator
Copyright © 2010 OW2 Consortium. All Rights Reserved.