Skip navigation links


com.essbase.eas.ui.editor.editpane
Class intArrayList

java.lang.Object
  extended by com.essbase.eas.ui.editor.editpane.intArrayList


public class intArrayList
extends java.lang.Object

defines a member attribute tree.

Since:
6.5.0
Version:
7.1.0
Author:
Sree Menon

Constructor Summary
intArrayList()
          Constructs an empty list with an initial capacity of ten.
intArrayList(int initialCapacity)
          Constructs an empty list with the specified initial capacity.

 

Method Summary
 boolean add(int o)
           
 void add(int index, int element)
           
 void clear()
           
 void ensureCapacity(int minCapacity)
          Increases the capacity of this intArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
 int get(int index)
           
 boolean isEmpty()
          Tests if this list has no elements.
 int remove(int index)
           
protected  void removeRange(int fromIndex, int toIndex)
           
 int set(int index, int element)
           
 int size()
          Returns the number of elements in this list.
 int[] toArray()
          Returns an array containing all of the elements in this list in the correct order.
 int[] toArray(int[] 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 intArrayList 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

intArrayList

public intArrayList(int initialCapacity)
Constructs an empty list with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity of the list.
Throws:
java.lang.IllegalArgumentException - if the specified initial capacity is negative

intArrayList

public intArrayList()
Constructs an empty list with an initial capacity of ten.

Method Detail

trimToSize

public void trimToSize()
Trims the capacity of this intArrayList instance to be the list's current size. An application can use this operation to minimize the storage of an intArrayList instance.

ensureCapacity

public void ensureCapacity(int minCapacity)
Increases the capacity of this intArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
Parameters:
minCapacity - the desired minimum capacity.

size

public int size()
Returns the number of elements in this list.
Returns:
the number of elements in this list.

isEmpty

public boolean isEmpty()
Tests if this list has no elements.
Returns:
true if this list has no elements; false otherwise.

toArray

public int[] toArray()
Returns an array containing all of the elements in this list in the correct order.
Returns:
an array containing all of the elements in this list in the correct order.

toArray

public int[] toArray(int[] 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. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list.

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.

Parameters:
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.
Returns:
an array containing the elements of the list.
Throws:
java.lang.ArrayStoreException - if the runtime type of a is not a supertype of the runtime type of every element in this list.

get

public int get(int index)

set

public int set(int index,
               int element)

add

public boolean add(int o)

add

public void add(int index,
                int element)

remove

public int remove(int index)

clear

public void clear()

removeRange

protected void removeRange(int fromIndex,
                           int toIndex)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.