edu.umd.cfar.lamp.viper.util
Interface Numeric

All Superinterfaces:
java.lang.Comparable
All Known Subinterfaces:
Instant
All Known Implementing Classes:
Frame, Time

public interface Numeric
extends java.lang.Comparable

A replacement for the java.lang.Number class, which really should be an interface.

Author:
davidm

Method Summary
 double doubleValue()
          Gets the closest or most appropriate double value for this number.
 float floatValue()
          Gets the closest or most appropriate float value for this number.
 int intValue()
          Gets the closest or most appropriate int value for this number.
 long longValue()
          Gets the closest or most appropriate long value for this number.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

longValue

public long longValue()
Gets the closest or most appropriate long value for this number.

Returns:
the long approximation

intValue

public int intValue()
Gets the closest or most appropriate int value for this number.

Returns:
the int approximation

doubleValue

public double doubleValue()
Gets the closest or most appropriate double value for this number.

Returns:
the double approximation

floatValue

public float floatValue()
Gets the closest or most appropriate float value for this number.

Returns:
the float approximation