class ComparableUtils { public static > int compareTo(final Object first, final Object firstPrime, final Class type) throws ClassCastException { return 0; } public static > int compareTo(final X first, final X firstPrime) throws ClassCastException { return 0; } } public final class X { /** Tests the method{@link ComparableUtils#compareTo(Object, Object, Class)} and * {@link ComparableUtils#compareTo(Object, Object)}. */ public void testCompareTo() { } }