Casts the supplied comparable to a comparable number. @param c the comparable value @param the numeric type @return the cast value
(Comparable c)
| 255 | * @return the cast value |
| 256 | */ |
| 257 | @SuppressWarnings("unchecked") |
| 258 | /* package private */ static <T extends Number & Comparable> T comparableNumber(Comparable c) { |
| 259 | return (T) c; |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Casts the supplied number to a comparable number. |