public interface Numerical
Modifier and Type | Method and Description |
---|---|
Class<? extends Number> |
typeOf()
The type of the number that this numerical implementation works
|
Number |
valueOf(Number n)
Returns a numerical object holding the value of the specified String.
|
Number |
valueOf(Object n)
Returns a numerical object holding the value of the specified
Object.toString() . |
Number |
valueOf(String n)
Returns a numerical object holding the value of the specified String.
|
Number valueOf(Object n)
Object.toString()
.n
- the instance of object to be parsed to a numberNumber valueOf(String n)
n
- the string to be parsed to a numberNumber valueOf(Number n)
n
- the number to be cast to specific number typeCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.