Comparables { public static <T extends Comparable<T>> int compare(final T first, final T second) { if (first == null) { return (second == null) ? 0 : 1; } else { return (second == null) ? -1 : first.compareTo(second); } } private  Comparables(); static Comparable<T> min(@Nonnull final Object... nrs); static Comparable<T> max(@Nonnull final Object... nrs); static int compare(final T first, final T second); static int compareArrays(final T[] first, final T[] second); static int compareArrays(final T[] first, final T[] second,
          final int from, final int to);  }
@Test public void testCompare() { int compareArrays = Comparables.compareArrays(new String[] {}, new String[] {"bla"}); Assert.assertTrue(compareArrays < 0); }