Class GenericObjectComparer

java.lang.Object
software.xdev.spring.data.eclipse.store.util.GenericObjectComparer

public final class GenericObjectComparer extends Object
  • Method Details

    • compare

      public static <E> int compare(E o1, E o2)
    • isLessThan

      public static <E> boolean isLessThan(E o1, E o2)
      Returns:
      true if o1 is less than o2, false if not.
    • isLessOrEqualTo

      public static <E> boolean isLessOrEqualTo(E o1, E o2)
      Returns:
      true if o1 is less or equal to o2, false if not.
    • isGreaterThan

      public static <E> boolean isGreaterThan(E o1, E o2)
      Returns:
      true if o1 is greater than o2, false if not.
    • isGreaterOrEqualTo

      public static <E> boolean isGreaterOrEqualTo(E o1, E o2)
      Returns:
      true if o1 is greater or equal to o2, false if not.