Class Comparators

java.lang.Object
ch.njol.skript.registrations.Comparators

@Deprecated public class Comparators extends Object
Deprecated.
  • Method Details

    • registerComparator

      public static <T1, T2> void registerComparator(Class<T1> t1, Class<T2> t2, Comparator<T1,T2> c)
      Deprecated.
      Registers a Comparator.
      Parameters:
      t1 -
      t2 -
      c -
      Throws:
      IllegalArgumentException - if any given class is equal to Object.class
    • compare

      public static Comparator.Relation compare(@Nullable @Nullable Object o1, @Nullable @Nullable Object o2)
      Deprecated.
    • getJavaComparator

      public static Comparator<Object> getJavaComparator()
      Deprecated.
    • getComparator

      @Nullable public static <F, S> @Nullable Comparator<? super F,? super S> getComparator(Class<F> f, Class<S> s)
      Deprecated.