MCPcopy Index your code
hub / github.com/apache/groovy / comparableNumber

Method comparableNumber

src/main/java/groovy/lang/NumberRange.java:257–260  ·  view source on GitHub ↗

Casts the supplied comparable to a comparable number. @param c the comparable value @param the numeric type @return the cast value

(Comparable c)

Source from the content-addressed store, hash-verified

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.

Callers 2

byMethod · 0.95
subListMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected