Compares two elements to see if the first is less than the second. @param firstElement the first element to compare @param secondElement the second element to compare @return true if the first element is less than the second, false otherwise
(T firstElement, T secondElement)
| 32 | * @return true if the first element is less than the second, false otherwise |
| 33 | */ |
| 34 | public static <T extends Comparable<T>> boolean less(T firstElement, T secondElement) { |
| 35 | return firstElement.compareTo(secondElement) < 0; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Compares two elements to see if the first is greater than the second. |
no test coverage detected