|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<java.lang.Object>
com.jme.scene.lod.ExVector
public class ExVector
ExVector
is an Extended Vector that does not allow multiple
instances.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ExVector()
Basic constructor. |
|
ExVector(int initialCapacity)
Constructor allowing you to set initialCapacity |
|
ExVector(int initialCapacity,
int capacityIncrement)
Constructor allowing you to set initialCapacity |
Method Summary | |
---|---|
boolean |
add(java.lang.Object obj)
Add the given object to the vector if and only if it is not already present. |
java.lang.Object |
get(java.lang.Object obj)
Retrieve an object from this vector. |
Methods inherited from class java.util.Vector |
---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public ExVector()
public ExVector(int initialCapacity)
initialCapacity
- how large of a vector to start withpublic ExVector(int initialCapacity, int capacityIncrement)
initialCapacity
- how large of a vector to start withcapacityIncrement
- how much space to add when we run lowMethod Detail |
---|
public boolean add(java.lang.Object obj)
add
in interface java.util.Collection<java.lang.Object>
add
in interface java.util.List<java.lang.Object>
add
in class java.util.Vector<java.lang.Object>
obj
- Object to add
public java.lang.Object get(java.lang.Object obj)
obj
- the object to retrieve. This uses indexOf to determine location
and then get(index) to retrieve it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |