Oracle Application Server Wireless Java API Reference
B14043-01


oracle.edge.common
Class ResizableArray

java.lang.Object
  extended byoracle.edge.common.ResizableArray


public class ResizableArray
extends java.lang.Object

Represents a resizable array of objects.


Field Summary
int m_objNo
java.lang.Object[] m_objs

Constructor Summary
ResizableArray(int AllocCapacity)
A constructor with specified intial allocation capacity.

Method Summary
void add(java.lang.Object CurObj)
Append a new object into this array.
void add(java.lang.Object[] CurObjs)
Append an array of new objects into this array.
void assign(java.lang.Object CurObj)
Empty this array and then add a new object to this array.
void assign(java.lang.Object[] CurObjs)
Empty this array and then add a new array of objects to this array.
void clear()
Direct cleanup on everything.
void clearElements()
Direct cleanup on individual elements but not array itself.
void compact()
Remove all null elements inside the array.
java.lang.Object find(java.lang.Object curObject)
java.lang.Object remove(java.lang.Object curObject)

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

Field Detail

m_objNo

public int m_objNo

m_objs

public java.lang.Object[] m_objs

Constructor Detail

ResizableArray

public ResizableArray(int AllocCapacity)
A constructor with specified intial allocation capacity. <p/>
Parameters:
AllocCapacity - initial allocation capacity

Method Detail

add

public void add(java.lang.Object CurObj)
Append a new object into this array. <p/>
Parameters:
CurObj - a new object

add

public void add(java.lang.Object[] CurObjs)
Append an array of new objects into this array. <p/>
Parameters:
CurObjs - an array of new objects

assign

public void assign(java.lang.Object CurObj)
Empty this array and then add a new object to this array. <p/>
Parameters:
CurObj - a new object

assign

public void assign(java.lang.Object[] CurObjs)
Empty this array and then add a new array of objects to this array. <p/>
Parameters:
CurObjs - a new array of objects

clear

public void clear()
Direct cleanup on everything.

clearElements

public void clearElements()
Direct cleanup on individual elements but not array itself.

compact

public void compact()
Remove all null elements inside the array.

find

public java.lang.Object find(java.lang.Object curObject)

remove

public java.lang.Object remove(java.lang.Object curObject)

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.