|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.PrimitiveArray
public class PrimitiveArray
Contains an array of a primitive data type, which is specified by the set method and provides methods to access this array easily.
| Constructor Summary | |
|---|---|
PrimitiveArray()
Constructor. |
|
PrimitiveArray(int capacity)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(int value)
Adds a integer value. |
void |
clear()
Removes all of the elements from this list. |
void |
clear(int index)
Clear the array beginning from the index. |
void |
ensureCapacity(int capacity)
Ensures the capacity of the array. |
int |
get(int index)
Gets the integer value by the index. |
int |
getSize()
Gets the length of the array. |
void |
set(int index,
int value)
Sets the integer value at the index. |
void |
setDefaultReturnValue(int value)
Sets the default return value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrimitiveArray()
public PrimitiveArray(int capacity)
capacity - The initial capacity of the array| Method Detail |
|---|
public void ensureCapacity(int capacity)
capacity - The capacity of the array
which is to ensurepublic int getSize()
public void clear()
public void clear(int index)
index - The start index to clear
public void set(int index,
int value)
index - The array indexvalue - The integer valuepublic int get(int index)
index - The array index
public void add(int value)
value - The integer value to addpublic void setDefaultReturnValue(int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||