aicas logoJamaica 6.4 release 1

java.lang
Class Number

java.lang.Object
  extended by java.lang.Number
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AtomicInteger, AtomicLong, BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, Short

public abstract class Number
extends Object
implements Serializable

Number super class of classes that impelement number, i.e., Byte, Short, Integer, Double, Long, BigInteger, etc.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
Number()
          Constructor for a number, needs to be called by sub-class' constructor.
 
Method Summary
 byte byteValue()
          byteValue returns this number as a byte, may involve rounding or truncation.
abstract  double doubleValue()
          doubleValue returns this number as a double, may involve rounding or truncation.
abstract  float floatValue()
          floatValue returns this number as a float, may involve rounding or truncation.
abstract  int intValue()
          intValue returns this number as an int, may involve rounding or truncation.
abstract  long longValue()
          longValue returns this number as a long, may involve rounding or truncation.
 short shortValue()
          shortValue returns this number as a short, may involve rounding or truncation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Number

public Number()
Constructor for a number, needs to be called by sub-class' constructor.

Method Detail

intValue

public abstract int intValue()
intValue returns this number as an int, may involve rounding or truncation.

Returns:
the value as an int.

longValue

public abstract long longValue()
longValue returns this number as a long, may involve rounding or truncation.

Returns:
the value as a long.

floatValue

public abstract float floatValue()
floatValue returns this number as a float, may involve rounding or truncation.

Returns:
the value as a float.

doubleValue

public abstract double doubleValue()
doubleValue returns this number as a double, may involve rounding or truncation.

Returns:
the value as a double.

byteValue

public byte byteValue()
byteValue returns this number as a byte, may involve rounding or truncation.

Returns:
the value as a byte.
Since:
1.1

shortValue

public short shortValue()
shortValue returns this number as a short, may involve rounding or truncation.

Returns:
the value as a short.
Since:
1.1

aicas logoJamaica 6.4 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.