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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.clone()
Deprecated.void
Deprecated.static Fraction
getFraction
(float quotient, int decimalPlaces) Deprecated.void
invert()
Deprecated.void
Deprecated.static Fraction
Deprecated.void
Deprecated.Copies the values of whole, nom, denom from the given fraction.void
Deprecated.void
toFactor()
Deprecated.float
toFloat()
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
-