public boolean hasNext() {
return (this.nextEntry != null);
}
public Object next() {
ObjectEntry current = this.nextEntry;
if ( current != null ) {
setNext();
} else {
throw new NoSuchElementException( "No more elements to return" );
}
if ( this.type == OBJECT ) {
return ((InternalFactHandle) current.getKey()).getObject();
} else {
return current.getKey();
}
}