Package ch.njol.skript.registrations
Class Comparators
java.lang.Object
ch.njol.skript.registrations.Comparators
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator.Relation
static <F, S> @Nullable Comparator<? super F,? super S>
getComparator(Class<F> f, Class<S> s)
static Comparator<Object>
static <T1, T2> void
registerComparator(Class<T1> t1, Class<T2> t2, Comparator<T1,T2> c)
Registers aComparator
.
-
Field Details
-
comparators
-
-
Method Details
-
registerComparator
Registers aComparator
.- Parameters:
t1
-t2
-c
-- Throws:
IllegalArgumentException
- if any given class is equal toObject.class
-
compare
-
getJavaComparator
-
getComparator
public static <F, S> @Nullable Comparator<? super F,? super S> getComparator(Class<F> f, Class<S> s)
-