java.lang.Object java.lang.Number
public abstract class Number
The abstract class Number
is the superclass of classes BigDecimal
, BigInteger
, Byte
, Double
, Float
, Integer
, Long
, and Short
.
Subclasses of Number
must provide methods to convert the represented numeric value to byte
, double
, float
, int
, long
, and short
.
Byte
, Double
, Float
, Integer
, Long
, Short
, Serialized Form
byte
byteValue()
byte
. abstract double
doubleValue()
double
. abstract float
floatValue()
float
. abstract int
intValue()
int
. abstract long
longValue()
long
. short
shortValue()
short
. Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Number
public Number()
public abstract int intValue()
int
. This may involve rounding or truncation.
int
.
public abstract long longValue()
long
. This may involve rounding or truncation.
long
.
public abstract float floatValue()
float
. This may involve rounding.
float
.
public abstract double doubleValue()
double
. This may involve rounding.
double
.
public byte byteValue()
byte
. This may involve rounding or truncation.
byte
.
public short shortValue()
short
. This may involve rounding or truncation.
short
.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4