public class BufferInt extends ListInt
Constructor and Description |
---|
BufferInt()
Creates a new buffer.
|
BufferInt(int initialCapacity)
Creates a new buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
addInt(int value)
Adds a new value.
|
void |
clear()
Removes all values from the buffer.
|
int |
getCurrentCapacity()
The maximum capacity for this buffer.
|
int |
getInt(int index)
Returns the element at the specified position in this list casted to an int.
|
int |
size()
Returns the number of elements in the collection.
|
public BufferInt()
public BufferInt(int initialCapacity)
initialCapacity
- initial capacitypublic int getInt(int index)
index
- position of the element to returnpublic int size()
public void addInt(int value)
value
- new valuepublic void clear()
public int getCurrentCapacity()
Copyright © 2015. All rights reserved.