public boolean hasNext() { getNext(); return next!=null; }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }
public boolean hasNext() { getNext(); return next!=null; }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }
public boolean hasNext() { getNext(); return next!=null; }
public boolean hasNext() { getNext(); return next!=null; }
public boolean hasNext() { getNext(); return next!=null; }
public boolean hasNext() { getNext(); return next!=null; }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }
private void getNext() { if(next!=null) return; if(child!=null && child.hasNext()) { next = child.next(); return; } // child is empty if(parent.hasNext()) { child = parent.next().values().iterator(); getNext(); } // else // no more object } }