public class IntArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
array
Stores all elements
|
protected int |
size
Number of entries occupied in array
|
Constructor and Description |
---|
IntArray() |
Modifier and Type | Method and Description |
---|---|
void |
append(int x) |
void |
append(int[] xs,
int offset,
int count) |
void |
append(int[] xs,
int offset,
int count,
int delta) |
void |
append(IntArray another) |
void |
append(IntArray another,
int delta) |
int[] |
array() |
protected void |
expand(int additionalSize)
Ensures that the array can accept the additional entries
|
int |
get(int index) |
void |
readFields(java.io.DataInput in) |
int |
size() |
void |
write(java.io.DataOutput out) |
protected int[] array
protected int size
public void append(int x)
public void append(int[] xs, int offset, int count)
public void append(int[] xs, int offset, int count, int delta)
public void append(IntArray another)
public void append(IntArray another, int delta)
protected void expand(int additionalSize)
additionalSize
- public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public int size()
public int[] array()
public int get(int index)