isNumeric

Tests whether the specified string can be encoded as a segment in numeric mode. A string is encodable iff each character is in the range 0 to 9.

Return

true iff each character is in the range 0 to 9.

Parameters

text

the string to test for encodability (not null)

See also

.makeNumeric

Throws

if the string is null