Class Fraction
java.lang.Object
com.polarion.core.util.types.duration.Fraction
- All Implemented Interfaces:
Serializable,Cloneable
Deprecated.
- Author:
- Jiri Banszel, Polarion Software
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.clone()Deprecated.voidDeprecated.static FractiongetFraction(float quotient, int decimalPlaces) Deprecated.voidinvert()Deprecated.voidDeprecated.static FractionDeprecated.voidDeprecated.Copies the values of whole, nom, denom from the given fraction.voidDeprecated.voidtoFactor()Deprecated.floattoFloat()Deprecated.toString()Deprecated.
-
Field Details
-
whole
public int wholeDeprecated. -
nom
public int nomDeprecated. -
denom
public int denomDeprecated.
-
-
Constructor Details
-
Fraction
public Fraction(int whole, int nom, int denom) Deprecated. -
Fraction
public Fraction(int nom, int denom) Deprecated. -
Fraction
public Fraction(int whole) Deprecated. -
Fraction
Deprecated.
-
-
Method Details
-
toCanonicalForm
public void toCanonicalForm()Deprecated. -
toFloat
public float toFloat()Deprecated. -
toString
Deprecated. -
toFactor
public void toFactor()Deprecated. -
add
Deprecated.- Parameters:
fraction- if null, nothing is added
-
multiple
Deprecated.- Parameters:
fraction- cannot be null
-
invert
public void invert()Deprecated. -
divide
Deprecated.- Parameters:
fraction- cannot be null
-
parse
Deprecated. -
getFraction
Deprecated. -
set
Deprecated.Copies the values of whole, nom, denom from the given fraction. -
clone
Deprecated.- Since:
- 3.3.2
-