|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.util.UnboundedArray
@Deprecated public class UnboundedArray extends java.lang.Object
Internal class for array lists
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
data
Deprecated. Unbounded array of objects. |
protected int |
firstIndex
Deprecated. |
protected int |
initialGrowSize
Deprecated. |
protected int |
lastIndex
Deprecated. |
protected int |
minIndex
Deprecated. |
| Constructor and Description |
|---|
UnboundedArray()
Deprecated. Creates new empty unbounded objects array. |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRange(int rangeStart,
int rangeEnd)
Deprecated. Deletes all array elements in a specified range. |
java.lang.Object |
get(int i)
Deprecated. Returns the array element at specified position. |
int |
getFirstIndex()
Deprecated. Returns first array index. |
int |
getLastIndex()
Deprecated. Returns last index of array. |
void |
insertRange(int rangeStart,
int rangeEnd)
Deprecated. Inserts new empty elements into array at specified index. |
void |
removeAll()
Deprecated. Removes all elements from array and sets attributes of array to default values. |
void |
set(int i,
java.lang.Object o)
Deprecated. Sets the value of an array element at specified index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int initialGrowSize
protected int minIndex
protected int firstIndex
protected int lastIndex
protected java.lang.Object[] data
| Constructor Detail |
|---|
public UnboundedArray()
| Method Detail |
|---|
public int getFirstIndex()
public int getLastIndex()
public void removeAll()
public void set(int i,
java.lang.Object o)
i - position of array element.o - new value of array element.public java.lang.Object get(int i)
i - position of array element.
public void deleteRange(int rangeStart,
int rangeEnd)
rangeStart - index of first element from deletion range. If it is
lower than first array index, then first range index will be first array
index. If rangeStart is greater than last array index, no
operation is performed.rangeEnd - index of last element from deletion range. If it is greater
than the last array index, then the last range index will be the last array index.
public void insertRange(int rangeStart,
int rangeEnd)
rangeStart - index of first element from insertion range. If rangeStart is greater than last array index, no
operation will be performed.rangeEnd - index of the last element from deletion range. If it is greater
than the last array index, then array will be resized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||