Package net.splitcells.dem.data.order
Interface Ordered<T>
-
- Type Parameters:
T
-
- All Superinterfaces:
Comparable<T>
,OrderingCheck<T>
- All Known Implementing Classes:
LogLevel
public interface Ordered<T> extends Comparable<T>, OrderingCheck<T>
The natural (default) order is ascending (from lower to higher). One of the default methods have to be implemented. If this is not done, this will cause an Exception because of an infinite recursion.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Ordering
compare_to(T arg)
TODO Test ifcompare_to(T)
is implemented for subclass of T.default int
compareTo(T arg)
default boolean
equalz(T other)
default boolean
greaterThan(T other)
default boolean
greaterThanOrEqual(T other)
default boolean
smallerThan(T other)
default boolean
smallerThanOrEqual(T other)
-
-
-
Method Detail
-
equalz
default boolean equalz(T other)
- Specified by:
equalz
in interfaceOrderingCheck<T>
-
compare_to
default Ordering compare_to(T arg)
TODO Test ifcompare_to(T)
is implemented for subclass of T. The relation of {@param arg} to {@link this}: this isto arg. Default order is ascending.
-
compareTo
default int compareTo(T arg)
- Specified by:
compareTo
in interfaceComparable<T>
-
smallerThan
default boolean smallerThan(T other)
- Specified by:
smallerThan
in interfaceOrderingCheck<T>
-
smallerThanOrEqual
default boolean smallerThanOrEqual(T other)
- Specified by:
smallerThanOrEqual
in interfaceOrderingCheck<T>
-
greaterThan
default boolean greaterThan(T other)
- Specified by:
greaterThan
in interfaceOrderingCheck<T>
-
greaterThanOrEqual
default boolean greaterThanOrEqual(T other)
- Specified by:
greaterThanOrEqual
in interfaceOrderingCheck<T>
-
-