Package adams.db.indices
Class Index
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<IndexColumn>
-
- adams.db.indices.Index
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<IndexColumn>
,Collection<IndexColumn>
,List<IndexColumn>
,RandomAccess
public class Index extends Vector<IndexColumn>
An Index is an ordered collection of IndexColumns- Version:
- $Revision$
- Author:
- dale
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description Index()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addIndexColumn(IndexColumn ic)
Add IndexColumn to this index.boolean
equals(Index index)
Does given Index match this one?boolean
presentAt(int pos, IndexColumn incol)
Is given IndexColumn present at given position in collection?-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
-
-
-
Method Detail
-
addIndexColumn
public int addIndexColumn(IndexColumn ic)
Add IndexColumn to this index. Return index count- Parameters:
ic
- IndexColumn to add- Returns:
- current number of indices
-
equals
public boolean equals(Index index)
Does given Index match this one?- Parameters:
index
- Index to compare- Returns:
- equals?
-
presentAt
public boolean presentAt(int pos, IndexColumn incol)
Is given IndexColumn present at given position in collection?- Parameters:
pos
- positionincol
- IndexColumn- Returns:
- present?
-
-