|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Vector
|
+--net.rim.device.api.util.CloneableVector
A vector that can provide a clone of itself.
CLDC's vector implementation cannot clone itself, so we provide this derived class that can.
| Field Summary |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Constructor Summary | ||
CloneableVector()
Constructs a new CloneableVector instance. |
||
CloneableVector(int initialCapacity)
Constructs a new CloneableVector instance with your provided initial capacity. |
||
CloneableVector(int initialCapacity,
int capacityIncrement)
Constructs a new CloneableVector instance with your provided initial capacity and capacity increment. |
||
| Method Summary | ||
Object |
clone()
Retreives a clone of this vector. |
|
static Vector |
clone(Vector vector)
Makes a clone of provided vector. |
|
| Methods inherited from class java.util.Vector |
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CloneableVector()
This builds a cloneable vector with an initial capacity of 4, and a capacity increment of zero.
public CloneableVector(int initialCapacity)
This builds a cloneable vector with your provided initial capacity, and a capacity increment of zero.
initialCapacity - Initial capacity of the vector.IllegalArgumentException - If initial capacity is less than zero.
public CloneableVector(int initialCapacity,
int capacityIncrement)
initialCapacity - Initial capacity of the vector.capacityIncrement - Additional capacity added to the vector each
time it overflows.IllegalArgumentException - If initial capacity is less than zero.| Method Detail |
public static final Vector clone(Vector vector)
vector - Vector to clone.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.