| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | |
| public SELF | |
| private static int | |
| public void | forEach(Consumer<? super T>
The action to be performed for each element action)Overrides default java. Iterable
until all elements have been processed or the action throws an
exception.
|
| public T | |
| public SELF | |
| public T | Returns: the struct at the specified indexthe index from which the struct will be read index)Absolute get method. |
| public SELF | Returns: the struct at the specified indexthe index from which the struct will be read index, T value)Absolute get method. |
| protected abstract T | |
| public Iterator | |
| public Stream | |
| public SELF | Returns: This bufferthe struct to be written value)Overrides org. |
| public SELF | Returns: This bufferthe index at which the struct will be written index, T the struct value to be written value)Absolute put method (optional operation). |
| public int | sizeof()
Implements abstract org. sizeof a single element in the buffer.
|
| public Spliterator | spliterator()
Overrides default java. Spliterator over the elements described by this
Iterable.
|
| public Stream |
| StructBuffer | back to summary |
|---|---|
| protected StructBuffer(ByteBuffer container, int remaining) | |
| StructBuffer | back to summary |
|---|---|
| protected StructBuffer(long address, ByteBuffer container, int mark, int position, int limit, int capacity) | |
| apply | back to summary |
|---|---|
| public SELF apply(Consumer<T> consumer) Relative apply method. Passes the struct at the buffer's current position to the specified
| |
| apply | back to summary |
|---|---|
| public SELF apply(int index, Consumer<T> consumer) Absolute apply method. Passes the struct at the specified position to the specified
| |
| check | back to summary |
|---|---|
| private static int check(int index, int length) | |
| forEach | back to summary |
|---|---|
| public void forEach(Consumer<? super T> action) Overrides default java. Doc from java. Performs the given action for each element of the The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy. | |
| get | back to summary |
|---|---|
| public T get() Relative get method. Reads the struct at this buffer's current position, and then increments the position. The struct instance returned is a view of the buffer at the current position. Changes to this buffer's content will be visible in the struct instance and vice versa.
| |
| get | back to summary |
|---|---|
| public SELF get(T value) Relative get method. Reads the struct data at this buffer's current position into the specified struct, and then increments the position.
| |
| get | back to summary |
|---|---|
| public T get(int index) Absolute get method. Reads the struct at the specified index. The struct instance returned is a view of the buffer at the specified position. Changes to this buffer's content will be visible in the struct instance and vice versa.
| |
| get | back to summary |
|---|---|
| public SELF get(int index, T value) Absolute get method. Reads the struct data at the specified index into the specified struct.
| |
| getElementFactory | back to summary |
|---|---|
| protected abstract T getElementFactory() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| parallelStream | back to summary |
|---|---|
| public Stream Returns a parallel | |
| put | back to summary |
|---|---|
| public SELF put(T value) Overrides org. Relative put method (optional operation). Writes the specified struct into this buffer at the current position, and then increments the position.
| |
| put | back to summary |
|---|---|
| public SELF put(int index, T value) Absolute put method (optional operation). Writes the specified struct into this buffer at the specified index.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns the
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| stream | back to summary |
|---|---|
| public Stream Returns a sequential | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private ByteBuffer | |
| private T | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | forEachRemaining(Consumer<? super T>
The action to be performed for each element action)Overrides default java. |
| public boolean | |
| public T |
| address | back to summary |
|---|---|
| private long address | |
| container | back to summary |
|---|---|
| private ByteBuffer container
| |
| factory | back to summary |
|---|---|
| private T factory | |
| fence | back to summary |
|---|---|
| private int fence | |
| index | back to summary |
|---|---|
| private int index | |
| StructIterator | back to summary |
|---|---|
| pack-priv StructIterator(long address, ByteBuffer container, T factory, int position, int limit) | |
| forEachRemaining | back to summary |
|---|---|
| public void forEachRemaining(Consumer<? super T> action) Overrides default java. Doc from java. Performs the given action for each remaining element until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.
The behavior of an iterator is unspecified if the action modifies the
collection in any way (even by calling the Subsequent behavior of an iterator is unspecified if the action throws an exception. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private ByteBuffer | |
| private T | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. |
| public long | estimateSize()
Implements java. forEachRemaining traversal, or returns Long#MAX_VALUE if infinite, unknown, or too expensive to compute.
|
| public void | forEachRemaining(Consumer<? super T>
The action action)Overrides default java. |
| public Comparator | getComparator()
Overrides default java. SORTED by a Comparator,
returns that Comparator.
|
| public boolean | tryAdvance(Consumer<? super T>
The action whose operation is performed at-most once action)Implements java. true; else returns false.
|
| public Spliterator | trySplit()
Implements java. |
| address | back to summary |
|---|---|
| private long address | |
| container | back to summary |
|---|---|
| private ByteBuffer container
| |
| factory | back to summary |
|---|---|
| private T factory | |
| fence | back to summary |
|---|---|
| private int fence | |
| index | back to summary |
|---|---|
| private int index | |
| StructSpliterator | back to summary |
|---|---|
| pack-priv StructSpliterator(long address, ByteBuffer container, T factory, int position, int limit) | |
| 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.
| |
| 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
| |
| forEachRemaining | back to summary |
|---|---|
| public void forEachRemaining(Consumer<? super T> action) Overrides default java. Doc from java. Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception. If this Spliterator is Subsequent behavior of a spliterator is unspecified if the action throws an exception. | |
| getComparator | back to summary |
|---|---|
| public Comparator Overrides default java. Doc from java. If this Spliterator's source is
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(Consumer<? super T> 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
| |