org.eclipse.soda.dk.data
Class FixedInteger
java.lang.Object
java.lang.Number
org.eclipse.soda.dk.data.Fraction
org.eclipse.soda.dk.data.IntegerFraction
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
|
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 java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 - intplaces - 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.Stringplaces - The places (int) parameter.- See Also:
FixedInteger(int),
FixedInteger(int,int),
FixedInteger(String)
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.
Copyright (c) 1999, 2007 IBM