use of org.hibernate.internal.util.collections.JoinedIterator in project hibernate-orm by hibernate.
the class PersistentClass method getSubclassIterator.
/**
* Iterate over subclasses in a special 'order', most derived subclasses
* first.
*/
public Iterator getSubclassIterator() {
Iterator[] iters = new Iterator[subclasses.size() + 1];
Iterator iter = subclasses.iterator();
int i = 0;
while (iter.hasNext()) {
iters[i++] = ((Subclass) iter.next()).getSubclassIterator();
}
iters[i] = subclasses.iterator();
return new JoinedIterator(iters);
}
Aggregations