|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.essbase.eas.ui.editor.editpane.longArrayList
public class longArrayList
defines a member attribute tree.
Constructor Summary | |
---|---|
longArrayList() Constructs an empty list with an initial capacity of ten. |
|
longArrayList(int initialCapacity) Constructs an empty list with the specified initial capacity. |
Method Summary | |
---|---|
void |
add(int index, long element) |
boolean |
add(long o) |
void |
clear() |
void |
ensureCapacity(int minCapacity) Increases the capacity of this longArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument. |
long |
get(int index) |
boolean |
isEmpty() Tests if this list has no elements. |
long |
remove(int index) |
protected void |
removeRange(int fromIndex, int toIndex) |
long |
set(int index, long element) |
int |
size() Returns the number of elements in this list. |
long[] |
toArray() Returns an array containing all of the elements in this list in the correct order. |
long[] |
toArray(long[] a) Returns an array containing all of the elements in this list in the correct order; the runtime type of the returned array is that of the specified array. |
void |
trimToSize() Trims the capacity of this longArrayList instance to be the list's current size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public longArrayList(int initialCapacity)
initialCapacity
- the initial capacity of the list.java.lang.IllegalArgumentException
- if the specified initial capacity is negativepublic longArrayList()
Method Detail |
---|
public void trimToSize()
public void ensureCapacity(int minCapacity)
minCapacity
- the desired minimum capacity.public int size()
public boolean isEmpty()
public long[] toArray()
public long[] toArray(long[] a)
If the list fits in the specified array with room to spare (i.e., the array has more elements than the list), the element in the array immediately following the end of the collection is set to null. This is useful in determining the length of the list only if the caller knows that the list does not contain any null elements.
a
- the array into which the elements of the list are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.java.lang.ArrayStoreException
- if the runtime type of a is not a supertype of the runtime type of every element in this list.public long get(int index)
public long set(int index, long element)
public boolean add(long o)
public void add(int index, long element)
public long remove(int index)
public void clear()
protected void removeRange(int fromIndex, int toIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |