public final class ComparabilityTester extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
testComparison(T first,
T equallyInOrderToFirst,
T second,
T third)
Test comparison.
|
static <T> void |
testComparison(T first,
T equallyInOrderToFirst,
T second,
T third,
Comparator<T> comparator)
Test comparison.
|
public static <T extends Comparable<T>> void testComparison(T first, T equallyInOrderToFirst, T second, T third)
T - type of the comparable classesfirst - Element first in orderequallyInOrderToFirst - Element equals in order to the first elementsecond - Element second in orderthird - Element third in orderpublic static <T> void testComparison(T first,
T equallyInOrderToFirst,
T second,
T third,
Comparator<T> comparator)
T - type of the comparable classesfirst - Element first in orderequallyInOrderToFirst - Element equals in order to the first elementsecond - Element second in orderthird - Element third in ordercomparator - comparatorCopyright © 2016. All rights reserved.