Implemented operations:
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int[] | |
| public final int | capacity()
Implements com. |
| public final int[] | Returns: the dest float[]destination buffer dest, final int offset of dest destOffset, final int number of float elements to get from-top this stack to length)dest.FILO get operation |
| public final IntBuffer | Returns: the dest FloatBufferdestination buffer, it's position is incremented by dest, final int length.number of float elements to get from-top this stack to length)dest.FILO get operation |
| public final int | |
| private final void | |
| public final int | position()
Implements com. |
| public final void | position(final int
the new position newPosition)Implements com. |
| public final int[] | Returns: the src float[]source buffer src, final int offset of src srcOffset, final int number of float elements to put from length)src on-top this stackFILO put operation |
| public final IntBuffer | |
| public final int | remaining()
Implements com. getGrowSize().
|
| public final void | setGrowSize(final int newGrowSize)
Implements com. |
| public final String |
| buffer | back to summary |
|---|---|
| private int[] buffer | |
| growSize | back to summary |
|---|---|
| private int growSize | |
| position | back to summary |
|---|---|
| private int position | |
| IntegerStack | back to summary |
|---|---|
public IntegerStack(final int initialSize, final int growSize)
| |
| buffer | back to summary |
|---|---|
| public final int[] buffer() | |
| capacity | back to summary |
|---|---|
| public final int capacity() Implements com. Doc from com. Returns this stack's current capacity.
The capacity may grow with a put operation w/ insufficient
| |
| getFromTop | back to summary |
|---|---|
| public final int[] getFromTop(final int[] dest, final int destOffset, final int length) throws IndexOutOfBoundsException FILO get operation
| |
| getFromTop | back to summary |
|---|---|
| public final IntBuffer getFromTop(final IntBuffer dest, final int length) throws IndexOutOfBoundsException, BufferOverflowException FILO get operation
| |
| getGrowSize | back to summary |
|---|---|
| public final int getGrowSize() Implements com. Doc from com. Returns the grow size. A stack grows by this size in case a put operation exceeds it's
| |
| growIfNecessary | back to summary |
|---|---|
| private final void growIfNecessary(final int length) throws IndexOutOfBoundsException | |
| position | back to summary |
|---|---|
| public final int position() Implements com. Doc from com. Returns the current position of this stack.
Position is in the range: 0 ≤ position < The position equals to the number of elements stored.
| |
| position | back to summary |
|---|---|
| public final void position(final int newPosition) throws IndexOutOfBoundsException Implements com. Doc from com. Sets the position of this stack.
| |
| putOnTop | back to summary |
|---|---|
| public final int[] putOnTop(final int[] src, final int srcOffset, final int length) throws IndexOutOfBoundsException FILO put operation
| |
| putOnTop | back to summary |
|---|---|
| public final IntBuffer putOnTop(final IntBuffer src, final int length) throws IndexOutOfBoundsException, BufferUnderflowException FILO put operation
| |
| remaining | back to summary |
|---|---|
| public final int remaining() Implements com. Doc from com. Returns the remaining elements left before stack will grow about remaining := capacity() - position(); 0 denotes a full stack.
| |
| setGrowSize | back to summary |
|---|---|
| public final void setGrowSize(final int newGrowSize) Implements com. Doc from com. Set new {@link #growSize().
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |