Interface Sorted
-
- All Superinterfaces:
Comparable<Sorted>
public interface Sorted extends Comparable<Sorted>
The interface that describes any items sorted by index and which has this index.- Author:
- soknight
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(@NotNull Sorted other)
int
getSortIndex()
Get the sort index of this item.
-
-
-
Method Detail
-
getSortIndex
int getSortIndex()
Get the sort index of this item.- Returns:
- The item sort index.
-
compareTo
default int compareTo(@NotNull @NotNull Sorted other)
- Specified by:
compareTo
in interfaceComparable<Sorted>
-
-