Class Fraction

java.lang.Object
com.polarion.core.util.types.duration.Fraction
All Implemented Interfaces:
Serializable, Cloneable

@Deprecated public class Fraction extends Object implements Serializable, Cloneable
Deprecated.
Author:
Jiri Banszel, Polarion Software
See Also:
  • Field Details

    • whole

      public int whole
      Deprecated.
    • nom

      public int nom
      Deprecated.
    • denom

      public int denom
      Deprecated.
  • 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

      public Fraction(Fraction fraction)
      Deprecated.
  • Method Details

    • toCanonicalForm

      public void toCanonicalForm()
      Deprecated.
    • toFloat

      public float toFloat()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • toFactor

      public void toFactor()
      Deprecated.
    • add

      public void add(Fraction fraction)
      Deprecated.
      Parameters:
      fraction - if null, nothing is added
    • multiple

      public void multiple(Fraction fraction)
      Deprecated.
      Parameters:
      fraction - cannot be null
    • invert

      public void invert()
      Deprecated.
    • divide

      public void divide(Fraction fraction)
      Deprecated.
      Parameters:
      fraction - cannot be null
    • parse

      public static Fraction parse(String string)
      Deprecated.
    • getFraction

      public static Fraction getFraction(float quotient, int decimalPlaces)
      Deprecated.
    • set

      public void set(Fraction fraction)
      Deprecated.
      Copies the values of whole, nom, denom from the given fraction.
    • clone

      public Object clone()
      Deprecated.
      Since:
      3.3.2