MCPcopy Create free account
hub / github.com/apache/commons-lang / notNaN

Method notNaN

src/main/java/org/apache/commons/lang3/Validate.java:1003–1005  ·  view source on GitHub ↗

Validates that the specified argument is not Not-a-Number (NaN); otherwise throwing an exception. Validate.notNaN(myDouble); The message of the exception is "The validated value is not a number". @param value the value to validate. @throws IllegalArgumentException if

(final double value)

Source from the content-addressed store, hash-verified

1001 * @since 3.5
1002 */
1003 public static void notNaN(final double value) {
1004 notNaN(value, DEFAULT_NOT_NAN_EX_MESSAGE);
1005 }
1006
1007 /**
1008 * Validates that the specified argument is not Not-a-Number (NaN); otherwise

Calls 2

getMessageMethod · 0.95
isNaNMethod · 0.45