/** * Returns the children of this {@code Entry}. * * @return a {@code SortedSet} of {@code Entry} objects * @throws java.io.IOException if an I/O exception occurs */ public SortedSet<Entry> getChildEntries() throws IOException { if (children == null) { if (isFile() || rootNodeDId == -1) { children = NO_CHILDREN; } else { // Start at root node in R/B tree, and read to the left and right, // re-build tree, according to the docs children = Collections.unmodifiableSortedSet(document.getEntries(rootNodeDId, this)); } } return children; }
/** * Returns the children of this {@code Entry}. * * @return a {@code SortedSet} of {@code Entry} objects * @throws java.io.IOException if an I/O exception occurs */ public SortedSet<Entry> getChildEntries() throws IOException { if (children == null) { if (isFile() || rootNodeDId == -1) { children = NO_CHILDREN; } else { // Start at root node in R/B tree, and read to the left and right, // re-build tree, according to the docs children = Collections.unmodifiableSortedSet(document.getEntries(rootNodeDId, this)); } } return children; }
/** * Returns the children of this {@code Entry}. * * @return a {@code SortedSet} of {@code Entry} objects * @throws java.io.IOException if an I/O exception occurs */ public SortedSet<Entry> getChildEntries() throws IOException { if (mChildren == null) { if (isFile() || rootNodeDId == -1) { mChildren = NO_CHILDREN; } else { // Start at root node in R/B tree, and raed to the left and right, // re-build tree, according to the docs mChildren = mDocument.getEntries(rootNodeDId, this); } } return mChildren; }