Note
This is likely slower than simply creating a box list recursively for small number of descendants but gets relatively faster (and uses less memory) as the list of descendants increases in size.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private DescendantBoxSpliterator. | |
| private final Deque |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| private Box | |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| private Box | |
| private Box | |
| private boolean | |
| private boolean | |
| private void | |
| private void | |
| public boolean | tryAdvance(Consumer<? super Box>
The action whose operation is performed at-most once action)Implements java. If a remaining element exists: performs the given action on it,
returning |
| public Spliterator | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| childIndex | back to summary |
|---|---|
| private int childIndex | |
| curState | back to summary |
|---|---|
| private DescendantBoxSpliterator. | |
| unprocessed | back to summary |
|---|---|
| private final Deque<Box> unprocessed | |
| DescendantBoxSpliterator | back to summary |
|---|---|
| public DescendantBoxSpliterator(Box parent) | |
| add | back to summary |
|---|---|
| private void add(Box bx) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| current | back to summary |
|---|---|
| private Box current() | |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| getNext | back to summary |
|---|---|
| private Box getNext() | |
| getNextInlineChild | back to summary |
|---|---|
| private Box getNextInlineChild(List<? extends Object> inlineChilds) | |
| hasChildren | back to summary |
|---|---|
| private boolean hasChildren(Box bx) | |
| hasNext | back to summary |
|---|---|
| private boolean hasNext() | |
| next | back to summary |
|---|---|
| private void next() | |
| setState | back to summary |
|---|---|
| private void setState(DescendantBoxSpliterator. | |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(Consumer<? super Box> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception. | |
| trySplit | back to summary |
|---|---|
| public Spliterator Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DescendantBoxSpliterator. | |
| public static final DescendantBoxSpliterator. | |
| public static final DescendantBoxSpliterator. | |
| public static final DescendantBoxSpliterator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DescendantBoxSpliterator. | |
| public static DescendantBoxSpliterator. |
| BLOCK_INLINE_CONTENT | back to summary |
|---|---|
| public static final DescendantBoxSpliterator. | |
| BOX_CHILDREN | back to summary |
|---|---|
| public static final DescendantBoxSpliterator. | |
| DONE | back to summary |
|---|---|
| public static final DescendantBoxSpliterator. | |
| ILB_INLINE_CHILDREN | back to summary |
|---|---|
| public static final DescendantBoxSpliterator. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static DescendantBoxSpliterator. | |
| values | back to summary |
|---|---|
| public static DescendantBoxSpliterator. | |