| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private final boolean | |
| private int[] | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | Returns: index of added key or -1 if fullthe key key)Adds a key, maintaining sort order on current search target column. |
| public synchronized boolean | Returns: true or false depending on successthe key key)Adds a key into the table with the guarantee that the key is equal or larger than the largest existing key. |
| public synchronized boolean | Returns: true or false depending on successthe key key)Adds a key, ensuring no duplicate key already exists in the current search target column. |
| public synchronized boolean | |
| private int | Returns: the indexReturns the index of the lowest element |
| private int | Returns: index or -1 if not foundReturns the index of the lowest element == the given search target, or -1 |
| private int | Returns: the indexReturns the index of the lowest element |
| public synchronized int | |
| public void | |
| protected int | Returns: -1, 0 or +1the index i)Check if targeted column value in the row indexed i is less than the search target object. |
| protected void | |
| private synchronized void | |
| private synchronized void | |
| public synchronized int | findFirstConsecutiveKeys(int
the number of consecutive keys required number)Returns: the index or -1 if not found |
| public synchronized int | |
| public synchronized int | |
| public synchronized int | Returns: the indexthe value value)This method is similar to findFirstGreaterEqualKeyIndex(int) but returns the index of the empty row past the end of the array if the search value is larger than all the values / keys in the searched column. |
| public synchronized int | |
| public synchronized int | |
| public int[] | |
| public synchronized long | |
| private void | |
| protected boolean | Returns: true or falsethe first index i, int the second index j)Check if row indexed i is less than row indexed j |
| protected void | |
| protected void | |
| private int | |
| private void | |
| public final synchronized void | |
| public synchronized void | |
| public synchronized int | removeFirstConsecutiveKeys(int
the number of consecutive keys required number, int default value def)Returns: the first key in series or def if not found |
| public synchronized void | |
| public synchronized void | |
| public synchronized int | |
| public synchronized void | |
| protected void |
| capacity | back to summary |
|---|---|
| private int capacity | |
| count | back to summary |
|---|---|
| private int count | |
| fixedSize | back to summary |
|---|---|
| private final boolean fixedSize | |
| keys | back to summary |
|---|---|
| private int[] keys | |
| sorted | back to summary |
|---|---|
| private boolean sorted | |
| targetSearchValue | back to summary |
|---|---|
| private int targetSearchValue | |
| IntIndex | back to summary |
|---|---|
| public IntIndex(int capacity, boolean fixedSize) | |
| add | back to summary |
|---|---|
| public synchronized int add(int key) Adds a key, maintaining sort order on current search target column.
| |
| addSorted | back to summary |
|---|---|
| public synchronized boolean addSorted(int key) Adds a key into the table with the guarantee that the key is equal or larger than the largest existing key. This prevents a sort from taking place on next call to find()
| |
| addUnique | back to summary |
|---|---|
| public synchronized boolean addUnique(int key) Adds a key, ensuring no duplicate key already exists in the current search target column.
| |
| addUnsorted | back to summary |
|---|---|
| public synchronized boolean addUnsorted(int key) Adds a key into the table.
| |
| binaryEmptySlotSearch | back to summary |
|---|---|
| private int binaryEmptySlotSearch() Returns the index of the lowest element
| |
| binaryFirstSearch | back to summary |
|---|---|
| private int binaryFirstSearch() Returns the index of the lowest element == the given search target, or -1
| |
| binarySlotSearch | back to summary |
|---|---|
| private int binarySlotSearch() Returns the index of the lowest element
| |
| capacity | back to summary |
|---|---|
| public synchronized int capacity() | |
| clear | back to summary |
|---|---|
| public void clear() | |
| compare | back to summary |
|---|---|
| protected int compare(int i) Check if targeted column value in the row indexed i is less than the search target object.
| |
| doubleCapacity | back to summary |
|---|---|
| protected void doubleCapacity() | |
| fastQuickSort | back to summary |
|---|---|
| private synchronized void fastQuickSort() fast quicksort using a stack on the heap to reduce stack use | |
| fastQuickSortRecursive | back to summary |
|---|---|
| private synchronized void fastQuickSortRecursive() fast quicksort with recursive quicksort implementation | |
| findFirstConsecutiveKeys | back to summary |
|---|---|
public synchronized int findFirstConsecutiveKeys(int number)
| |
| findFirstEqualKeyIndex | back to summary |
|---|---|
public synchronized int findFirstEqualKeyIndex(int value)
| |
| findFirstGreaterEqualKeyIndex | back to summary |
|---|---|
public synchronized int findFirstGreaterEqualKeyIndex(int value)
| |
| findFirstGreaterEqualSlotIndex | back to summary |
|---|---|
| public synchronized int findFirstGreaterEqualSlotIndex(int value) This method is similar to findFirstGreaterEqualKeyIndex(int) but returns the index of the empty row past the end of the array if the search value is larger than all the values / keys in the searched column.
| |
| findFirstIndexUnsorted | back to summary |
|---|---|
| public synchronized int findFirstIndexUnsorted(int value) | |
| getKey | back to summary |
|---|---|
| public synchronized int getKey(int i) | |
| getKeys | back to summary |
|---|---|
| public int[] getKeys() | |
| getTotalValues | back to summary |
|---|---|
| public synchronized long getTotalValues() | |
| insertionSort | back to summary |
|---|---|
| private void insertionSort(int lo0, int hi0) | |
| lessThan | back to summary |
|---|---|
| protected boolean lessThan(int i, int j) Check if row indexed i is less than row indexed j
| |
| moveAndInsertRow | back to summary |
|---|---|
| protected void moveAndInsertRow(int i, int j) | |
| moveRows | back to summary |
|---|---|
| protected void moveRows(int fromIndex, int toIndex, int rows) | |
| partition | back to summary |
|---|---|
| private int partition(int start, int end, int pivot) | |
| quickSort | back to summary |
|---|---|
| private void quickSort(int l, int r) | |
| remove | back to summary |
|---|---|
| public final synchronized void remove(int position) | |
| removeAll | back to summary |
|---|---|
| public synchronized void removeAll() | |
| removeFirstConsecutiveKeys | back to summary |
|---|---|
public synchronized int removeFirstConsecutiveKeys(int number, int def)
| |
| removeRange | back to summary |
|---|---|
| public synchronized void removeRange(int start, int limit) | |
| setKey | back to summary |
|---|---|
| public synchronized void setKey(int i, int key) Modifies an existing pair.
| |
| size | back to summary |
|---|---|
| public synchronized int size() | |
| sort | back to summary |
|---|---|
| public synchronized void sort() | |
| swap | back to summary |
|---|---|
| protected void swap(int i1, int i2) | |