|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.IntArray
public class IntArray
An array with integer element.
| Constructor Summary | |
|---|---|
IntArray()
Create an int array with the default initial capacity. |
|
IntArray(int capacity)
Create an int array with specified initial capacity. |
|
IntArray(int[] data)
Create an int array with the given values and size. |
|
| Method Summary | |
|---|---|
void |
add(int value)
Append a value. |
void |
ensureCapacity(int minCapacity)
Ensure the the underlying array is large enough for the given number of entries. |
boolean |
equals(java.lang.Object obj)
|
int |
get(int index)
Get the value at the given index. |
int |
hashCode()
|
void |
remove(int index)
Remove the value at the given index. |
void |
removeRange(int fromIndex,
int toIndex)
Remove a number of elements. |
int |
size()
Get the size of the list. |
void |
toArray(int[] array)
Convert this list to an array. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntArray()
public IntArray(int capacity)
capacity - the initial capacitypublic IntArray(int[] data)
data - the int array| Method Detail |
|---|
public void add(int value)
value - the value to appendpublic int get(int index)
index - the index
public void remove(int index)
index - the indexpublic void ensureCapacity(int minCapacity)
minCapacity - the minimum capacitypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int size()
public void toArray(int[] array)
array - the target arraypublic java.lang.String toString()
toString in class java.lang.Object
public void removeRange(int fromIndex,
int toIndex)
fromIndex - the index of the first item to removetoIndex - upper bound (exclusive)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||