public interface ArrayComparator
Comparison interface, designed for comparing elements in some data array.
Unlike the standard java.util.Comparator, the basic method
of this interface works not with data elements, but with their indexes in the array:
this method should get them from the analysed array itself.
So, every object, implementing this interface, is supposed to be working with some fixed linear data array.
The method of storing data in the array can be any; for example, it can be an
or a usual Java array.
The length of the array is limited only by 263−1 (maximal possible value for long
This interface is used by
boolean less(long firstIndex, long secondIndex)
firstIndex- index of the first compared element.
secondIndex- index of the second compared element.