public class CompatibleVector extends Vector<Object>
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
CompatibleVector() |
CompatibleVector(int i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(CompatibleVectorHints obj) |
void |
add(int idx,
CompatibleVectorHints obj) |
void |
addAll(CompatibleVector cv) |
boolean |
addOrderedDouble(Double obj) |
void |
clear() |
Object |
get(int idx) |
int |
indexOf(CompatibleVectorHints r)
if the object being checked implements index hints, the lookup can be
performed much faster
speed of lookups is affected by 'shuffling' positions of vector elements.
|
Iterator |
iterator() |
Object |
last() |
Object |
next()
overriding AbstractList so we can have concurrent mods...
|
boolean |
remove(Object obj) |
void |
resetHints(boolean ignore_records)
reset the hints for all vector elements expense is linear to size but will
increase accuracy of subsequent 'indexOf' calls.
|
Object[] |
toArray() |
Object[] |
toArray(Object[] obj) |
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, streampublic CompatibleVector()
public CompatibleVector(int i)
public void resetHints(boolean ignore_records)
public Iterator iterator()
public int indexOf(CompatibleVectorHints r)
public Object next()
public Object get(int idx)
public boolean addOrderedDouble(Double obj)
public Object last()
public boolean add(CompatibleVectorHints obj)
public void add(int idx,
CompatibleVectorHints obj)
public void addAll(CompatibleVector cv)
public boolean remove(Object obj)
public void clear()
public Object[] toArray()
Copyright © 2002–2019 Starter Inc.. All rights reserved.