public class TLcdIntBuffer extends Object
Constructor and Description |
---|
TLcdIntBuffer()
Creates a new
ExtendableIntArray that is able to contain
INITIAL_CAPACITY number of integers. |
TLcdIntBuffer(int aInitialCapacity)
Creates a new
ExtendableIntArray that is able to contain
aInitialCapacity number of integers. |
TLcdIntBuffer(TLcdIntBuffer aIntBuffer)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int aValue)
Adds an element to the array of integers.
|
void |
add(int aIndex,
int aValue)
Inserts the specified value at the specified position.
|
Object |
clone() |
int |
find(int aNumber)
Returns the position of aNumber in this extendable array.
|
int |
getNumber(int aIndex)
Returns the integer at position aIndex.
|
int |
getNumberCount()
Returns the number of integers in the array.
|
boolean |
remove(int aValue) |
void |
removeAll() |
void |
set(int aIndex,
int aValue)
Replaces the element at the specified position with
the specified value.
|
public TLcdIntBuffer()
ExtendableIntArray
that is able to contain
INITIAL_CAPACITY number of integers.public TLcdIntBuffer(int aInitialCapacity)
ExtendableIntArray
that is able to contain
aInitialCapacity number of integers.aInitialCapacity
- public TLcdIntBuffer(TLcdIntBuffer aIntBuffer)
aIntBuffer
- the intBuffer to be copied into a new objectpublic void add(int aValue)
public void add(int aIndex, int aValue)
public void set(int aIndex, int aValue)
public int find(int aNumber)
public int getNumberCount()
public int getNumber(int aIndex)
public boolean remove(int aValue)
public void removeAll()