Uses of Interface
com.mckoi.util.IndexComparator
Packages that use IndexComparator
-
Uses of IndexComparator in com.mckoi.util
Methods in com.mckoi.util with parameters of type IndexComparatorModifier and TypeMethodDescriptionfinal int
BlockIntegerList.IntArrayListBlock.binarySearch
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.abstract int
IntegerListBlockInterface.binarySearch
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.void
AbstractBlockIntegerList.checkSorted
(IndexComparator c) static void
AbstractBlockIntegerList.checkSorted
(IntegerIterator iterator, IndexComparator c) final boolean
AbstractBlockIntegerList.contains
(Object key, IndexComparator c) Assuming the list is sorted, this performs a binary search and returns true if the value is found, otherwise returns false.boolean
IntegerListInterface.contains
(Object key, IndexComparator c) Assuming the list is sorted, this performs a binary search and returns true if the key value is found, otherwise returns false.final void
AbstractBlockIntegerList.insertSort
(Object key, int val, IndexComparator c) Inserts the key/index pair into the list at the correct sorted position (determine by the IndexComparator).void
IntegerListInterface.insertSort
(Object key, int val, IndexComparator c) Inserts the key/index pair into the list at the correct sorted position (determine by the IndexComparator).final int
AbstractBlockIntegerList.removeSort
(Object key, int val, IndexComparator c) Removes the key/val pair from the list by first searching for it, and then removing it from the list.int
IntegerListInterface.removeSort
(Object key, int val, IndexComparator c) Removes the key/val pair from the list by first searching for it, and then removing it from the list.final int
AbstractBlockIntegerList.searchFirst
(Object key, IndexComparator c) Returns the index of the first value in this set that equals the given value.final int
BlockIntegerList.IntArrayListBlock.searchFirst
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.abstract int
IntegerListBlockInterface.searchFirst
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.int
IntegerListInterface.searchFirst
(Object key, IndexComparator c) Returns the index of the first value in this set that equals the given value.final int
AbstractBlockIntegerList.searchLast
(Object key, IndexComparator c) Returns the index of the last value in this set that equals the given value.final int
BlockIntegerList.IntArrayListBlock.searchLast
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.abstract int
IntegerListBlockInterface.searchLast
(Object key, IndexComparator c) Considers each int a reference to another structure, and the block sorted by these structures.int
IntegerListInterface.searchLast
(Object key, IndexComparator c) Returns the index of the last value in this set that equals the given value.