public interface Ordered extends Comparable<Ordered>
| Modifier and Type | Field and Description |
|---|---|
static int |
HIGHEST_PRECEDENCE
Useful constant for the highest precedence value.
|
static int |
LOWEST_PRECEDENCE
Useful constant for the lowest precedence value.
|
static Comparator<Ordered> |
ORDERED_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(@NotNull Ordered o2) |
default int |
getOrder()
Get the order value of this object.
|
static final int HIGHEST_PRECEDENCE
Integer.MIN_VALUE,
Constant Field Valuesstatic final int LOWEST_PRECEDENCE
Integer.MAX_VALUE,
Constant Field Valuesstatic final Comparator<Ordered> ORDERED_COMPARATOR
default int compareTo(@NotNull
@NotNull Ordered o2)
compareTo in interface Comparable<Ordered>default int getOrder()
load-on-startup values).
Same order values will result in arbitrary sort positions for the
affected objects.LOWEST_PRECEDENCE)HIGHEST_PRECEDENCE,
LOWEST_PRECEDENCECopyright © 2019. All rights reserved.