org.eclipse.soda.dk.data
Class FixedLong
java.lang.Object
java.lang.Number
org.eclipse.soda.dk.data.Fraction
org.eclipse.soda.dk.data.LongFraction
org.eclipse.soda.dk.data.FixedLong
- All Implemented Interfaces:
- java.io.Serializable, Numeric
public class FixedLong
- extends LongFraction
The FixedLong class provides support a fixed long value.
- Version:
- 1.0.0
- See Also:
Fraction,
LongFraction,
Serializable,
Serialized Form
|
Constructor Summary |
FixedLong(long value,
int places)
Constructs an FixedLong object using the input parameter(s). |
FixedLong(java.lang.String string)
Constructs an FixedLong object using the input parameter(s). |
|
Method Summary |
java.lang.String |
toString()
Perform the toString method and return the String result. |
| Methods inherited from class org.eclipse.soda.dk.data.LongFraction |
add, divide, divide, divide, doubleValue, equals, floatValue, getDenominator, getNumerator, intDenominator, intNumerator, intValue, longDenominator, longNumerator, longValue, multiply, multiply, multiply, negate, reciprocal, reduce, setDenominator, setNumerator, subtract |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FixedLong
public FixedLong(long value,
int places)
- Constructs an
FixedLong object using the input parameter(s).
- Parameters:
value - longplaces - int- See Also:
FixedLong(String)
FixedLong
public FixedLong(java.lang.String string)
throws java.lang.NumberFormatException
- Constructs an
FixedLong object using the input parameter(s).
- Parameters:
string - java.lang.String
- Throws:
java.lang.NumberFormatException - The exception description.- See Also:
FixedLong(long,int)
toString
public java.lang.String toString()
- Perform the toString method and return the
String result.
- Overrides:
toString in class LongFraction
- Returns:
- Results of the to string (
String) value.
Copyright (c) 1999, 2007 IBM