public class VectorEntryIndexComparator extends java.lang.Object implements EntryIndexComparator<VectorEntry>
EntryIndexComparator.Compare
Modifier and Type | Field and Description |
---|---|
static VectorEntryIndexComparator |
INSTANCE
A single instance of this class to use because it has no internal memory.
|
Constructor and Description |
---|
VectorEntryIndexComparator()
Creates a new instance of VectorEntryIndexComparator
|
Modifier and Type | Method and Description |
---|---|
EntryIndexComparator.Compare |
lowestIndex(VectorEntry firstEntry,
VectorEntry secondEntry)
Determines which iterator has the lowest index
|
public static final VectorEntryIndexComparator INSTANCE
public VectorEntryIndexComparator()
public EntryIndexComparator.Compare lowestIndex(VectorEntry firstEntry, VectorEntry secondEntry)
lowestIndex
in interface EntryIndexComparator<VectorEntry>
firstEntry
- first entry to considersecondEntry
- second entry to consider