1.0.0

org.eclipse.soda.dk.data
Class FixedLong

java.lang.Object
  extended by java.lang.Number
      extended by org.eclipse.soda.dk.data.Fraction
          extended by org.eclipse.soda.dk.data.LongFraction
              extended by 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

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.data.LongFraction
denominator, numerator
 
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 org.eclipse.soda.dk.data.Fraction
hashCode
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedLong

public FixedLong(long value,
                 int places)
Constructs an FixedLong object using the input parameter(s).

Parameters:
value - long
places - 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)
Method Detail

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.

1.0.0

Copyright (c) 1999, 2007 IBM