protected class MiddleOutConstructor.MyIdxList extends FastVector
FastVector.FastVectorEnumeration
Constructor and Description |
---|
MyIdxList()
Constructor.
|
MyIdxList(int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MiddleOutConstructor.MyIdxList |
append(MiddleOutConstructor.MyIdxList list1,
MiddleOutConstructor.MyIdxList list2)
Appends one list at the end of the other.
|
void |
checkSorting(MiddleOutConstructor.MyIdxList list)
Checks the sorting of a list.
|
MiddleOutConstructor.ListNode |
get(int index)
Returns an element at the specified index in
the list.
|
MiddleOutConstructor.ListNode |
getFirst()
Returns the first element in the list.
|
String |
getRevision()
Returns the revision string.
|
void |
insertReverseSorted(int idx,
double distance)
Inserts an element in reverse sorted order in
the list.
|
int |
length()
Returns the size of the list.
|
void |
remove(int index)
Removes an element at the specified index
from the list.
|
addElement, appendElements, capacity, contains, copy, copyElements, elementAt, elements, elements, firstElement, indexOf, insertElementAt, lastElement, removeAllElements, removeElementAt, setCapacity, setElementAt, size, swap, toArray, trimToSize
public MyIdxList()
public MyIdxList(int size)
size
- The initial capacity of the list.public MiddleOutConstructor.ListNode getFirst()
public void insertReverseSorted(int idx, double distance)
idx
- The index of the point to insert.distance
- The distance of the point to
a node's anchor (this would be used to
determine the sort order).public MiddleOutConstructor.ListNode get(int index)
index
- The index of the element in the
list.public void remove(int index)
index
- The index of the element
in the list to remove.public int length()
public MiddleOutConstructor.MyIdxList append(MiddleOutConstructor.MyIdxList list1, MiddleOutConstructor.MyIdxList list2)
list1
- The list to which the other
list would be appended.list2
- The list to append to the
other list.public void checkSorting(MiddleOutConstructor.MyIdxList list) throws Exception
list
- The list whose sorting is
to be checked.Exception
- If the list is not
in (reverse) sorted order.public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class FastVector
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.