@LimitedPrivate("MapReduce")
@Unstable
public interface IndexedSortable
IndexedSorter
algorithms.| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(int i,
int j) |
Compare items at the given addresses consistent with the semantics of
Comparator.compare(Object, Object). |
void |
swap(int i,
int j) |
Swap items at the given addresses.
|
int compare(int i,
int j)
Comparator.compare(Object, Object).i - (int).j - (int).void swap(int i,
int j)
i - i(int).j - j(int).Copyright © 2008–2025 Apache Software Foundation. All rights reserved.