Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jimi.util
Class ExpandableArray

    java.lang.Object
      |
      +--com.sun.jimi.util.ExpandableArray

public class ExpandableArray
extends java.lang.Object

Simple Single Threaded Expandable Array. Class to replace Vector without the synchronized overhead Expandable array implementation, only the minimal set of methods are implemented this set may expand as other clients use this code and require them.

Field Summary
`protected int` | `elementCount_`

Constructor Summary
`ExpandableArray()`
`ExpandableArray(int initialCapacity)`
`ExpandableArray(int initialCapacity, int capacityIncrement)`

Method Summary
`int` | `addElement(java.lang.Object o)`
`java.lang.Object` | `elementAt(int i)`
`java.lang.Object` | `lastElement()`
`void` | `removeElementAt(int i)`
`int` | `size()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### elementCount_

    protected int elementCount_

Constructor Detail

### ExpandableArray

    public ExpandableArray(int initialCapacity,
                           int capacityIncrement)

### ExpandableArray

    public ExpandableArray(int initialCapacity)

### ExpandableArray

    public ExpandableArray()

Method Detail

### size

    public int size()

### addElement

    public int addElement(java.lang.Object o)

  Returns:
    the index of the added object.

### elementAt

    public java.lang.Object elementAt(int i)

### removeElementAt

    public void removeElementAt(int i)

### lastElement

    public java.lang.Object lastElement()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD