@Test public void compareLong() { assertEquals(-1, ObjectHelper.compare(0L, 2L)); assertEquals(0, ObjectHelper.compare(0L, 0L)); assertEquals(1, ObjectHelper.compare(2L, 0L)); }
public static int compare(int v1, int v2) { return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0); }
ObjectHelper { public static int compare(int v1, int v2) { return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0); } }
ObjectHelper { public static int compare(int v1, int v2) { return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0); } private  ObjectHelper(); }
ObjectHelper { public static int compare(int v1, int v2) { return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0); } private  ObjectHelper(); static T requireNonNull(T object, String message); static boolean equals(Object o1, Object o2); static int hashCode(Object o); static int compare(int v1, int v2); static int compare(long v1, long v2); @SuppressWarnings("unchecked") static BiPredicate<T, T> equalsPredicate(); static int verifyPositive(int value, String paramName); static long verifyPositive(long value, String paramName); }
ObjectHelper { public static int compare(int v1, int v2) { return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0); } private  ObjectHelper(); static T requireNonNull(T object, String message); static boolean equals(Object o1, Object o2); static int hashCode(Object o); static int compare(int v1, int v2); static int compare(long v1, long v2); @SuppressWarnings("unchecked") static BiPredicate<T, T> equalsPredicate(); static int verifyPositive(int value, String paramName); static long verifyPositive(long value, String paramName);  }