public class ComparatorUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<DataProcessor<?,?>> |
DATA_PROCESSOR_COMPARATOR |
static Comparator<org.spongepowered.api.data.property.PropertyStore<?>> |
PROPERTY_STORE_COMPARATOR |
static Comparator<ValueProcessor<?,?>> |
VALUE_PROCESSOR_COMPARATOR
This will compare two
ValueProcessor s where the higher priority
will compare opposite to the lower priority. |
Constructor and Description |
---|
ComparatorUtil() |
Modifier and Type | Method and Description |
---|---|
static Comparator<Byte> |
byteComparator() |
static Comparator<Double> |
doubleComparator() |
static Comparator<Float> |
floatComparator() |
static Comparator<Integer> |
intComparator() |
static Comparator<Long> |
longComparator() |
static Comparator<Short> |
shortComparator() |
public static final Comparator<ValueProcessor<?,?>> VALUE_PROCESSOR_COMPARATOR
ValueProcessor
s where the higher priority
will compare opposite to the lower priority.public static final Comparator<DataProcessor<?,?>> DATA_PROCESSOR_COMPARATOR
public static final Comparator<org.spongepowered.api.data.property.PropertyStore<?>> PROPERTY_STORE_COMPARATOR
public static Comparator<Integer> intComparator()
public static Comparator<Long> longComparator()
public static Comparator<Short> shortComparator()
public static Comparator<Byte> byteComparator()
public static Comparator<Double> doubleComparator()
public static Comparator<Float> floatComparator()