public interface IndexedSortable
Modifier and Type | Method and Description |
---|---|
int |
compare(int i,
int j)
Compare items at the given addresses consistent with the semantics of
Comparator.compare(Object, Object) . |
int |
size()
Gets the number of elements in the sortable.
|
void |
swap(int i,
int j)
Swap items at the given addresses.
|
int compare(int i, int j)
Comparator.compare(Object, Object)
.void swap(int i, int j)
int size()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.