lt.monarch.util
Class UnboundedArray

java.lang.Object
  extended by lt.monarch.util.UnboundedArray

Deprecated.

@Deprecated
public class UnboundedArray
extends java.lang.Object

Internal class for array lists


Field Summary
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 Summary
Constructor and Description
UnboundedArray()
          Deprecated. Creates new empty unbounded objects array.
 
Method Summary
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

initialGrowSize

protected int initialGrowSize
Deprecated. 

minIndex

protected int minIndex
Deprecated. 

firstIndex

protected int firstIndex
Deprecated. 

lastIndex

protected int lastIndex
Deprecated. 

data

protected java.lang.Object[] data
Deprecated. 
Unbounded array of objects.

Constructor Detail

UnboundedArray

public UnboundedArray()
Deprecated. 
Creates new empty unbounded objects array.

Method Detail

getFirstIndex

public int getFirstIndex()
Deprecated. 
Returns first array index.

Returns:
first index of an array

getLastIndex

public int getLastIndex()
Deprecated. 
Returns last index of array.

Returns:
last index of an array

removeAll

public void removeAll()
Deprecated. 
Removes all elements from array and sets attributes of array to default values.


set

public void set(int i,
                java.lang.Object o)
Deprecated. 
Sets the value of an array element at specified index.

Parameters:
i - position of array element.
o - new value of array element.

get

public java.lang.Object get(int i)
Deprecated. 
Returns the array element at specified position.

Parameters:
i - position of array element.
Returns:
array element at the specified position

deleteRange

public void deleteRange(int rangeStart,
                        int rangeEnd)
Deprecated. 
Deletes all array elements in a specified range. Range beginning index must be greater than end index.

Parameters:
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.

insertRange

public void insertRange(int rangeStart,
                        int rangeEnd)
Deprecated. 
Inserts new empty elements into array at specified index. Range start index must be greater than the end index.

Parameters:
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.