Compares two elements to see if the first is greater than the second. @param firstElement the first element to compare @param secondElement the second element to compare @return true if the first element is greater than the second, false otherwise
(T firstElement, T secondElement)
| 43 | * @return true if the first element is greater than the second, false otherwise |
| 44 | */ |
| 45 | public static <T extends Comparable<T>> boolean greater(T firstElement, T secondElement) { |
| 46 | return firstElement.compareTo(secondElement) > 0; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Compares two elements to see if the first is greater than or equal to the second. |
no test coverage detected