1.0.0

org.eclipse.soda.dk.data
Class FixedInteger

java.lang.Object
  extended by java.lang.Number
      extended by org.eclipse.soda.dk.data.Fraction
          extended by org.eclipse.soda.dk.data.IntegerFraction
              extended by org.eclipse.soda.dk.data.FixedInteger
All Implemented Interfaces:
java.io.Serializable, Numeric

public class FixedInteger
extends IntegerFraction

The FixedInteger class provides support a fixed integer value.

Version:
1.0.0
See Also:
Fraction, IntegerFraction, Serializable, Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.data.IntegerFraction
denominator, numerator
 
Constructor Summary
FixedInteger(int numerator)
          Constructs an FixedInteger object using the input parameter(s).
FixedInteger(int value, int places)
          Constructs an FixedInteger object using the input parameter(s).
FixedInteger(java.lang.String string)
          Constructs an FixedInteger object using the input parameter(s).
FixedInteger(java.lang.String string, int places)
          Constructs an FixedInteger 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.IntegerFraction
add, createBest, divide, divide, divide, doubleValue, equals, floatValue, gcd, 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

FixedInteger

public FixedInteger(int numerator)
Constructs an FixedInteger object using the input parameter(s).

Parameters:
numerator - int
See Also:
FixedInteger(int,int), FixedInteger(String), FixedInteger(String,int)

FixedInteger

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

Parameters:
value - int
places - int
See Also:
FixedInteger(int), FixedInteger(String), FixedInteger(String,int)

FixedInteger

public FixedInteger(java.lang.String string)
Constructs an FixedInteger object using the input parameter(s).

Parameters:
string - java.lang.String
See Also:
FixedInteger(int), FixedInteger(int,int), FixedInteger(String,int)

FixedInteger

public FixedInteger(java.lang.String string,
                    int places)
Constructs an FixedInteger object using the input parameter(s).

Parameters:
string - java.lang.String
places - The places (int) parameter.
See Also:
FixedInteger(int), FixedInteger(int,int), FixedInteger(String)
Method Detail

toString

public java.lang.String toString()
Perform the toString method and return the String result.

Overrides:
toString in class IntegerFraction
Returns:
Results of the to string (String) value.

1.0.0

Copyright (c) 1999, 2007 IBM