Class FractionalCombination

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

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

    • FractionalCombination

      public FractionalCombination(String[] units)
      Deprecated.
      Parameters:
      units - ordered
  • Method Details

    • getCoefficient

      public Fraction getCoefficient(String unit)
      Deprecated.
    • setCoefficients

      public void setCoefficients(Fraction[] coefficients)
      Deprecated.
    • setCoefficient

      public void setCoefficient(String unit, Fraction coeff)
      Deprecated.
    • getCoefficients

      public Fraction[] getCoefficients()
      Deprecated.
    • getCoefficientsMap

      public Map getCoefficientsMap()
      Deprecated.
    • setCoefficientsMap

      public void setCoefficientsMap(Map coeffs)
      Deprecated.
    • add

      public void add(FractionalCombination combination)
      Deprecated.
    • isZero

      public boolean isZero()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
      See Also:
    • getMap

      public static Map getMap(String duration)
      Deprecated.
    • parseDuration

      public FractionalCombination parseDuration(String duration)
      Deprecated.
      Parameters:
      duration -
      Returns:
      instance of FractionalCombination that represents given string.
    • isValid

      public static boolean isValid(String duration, String[] units)
      Deprecated.
      Checks whether given string is a valid duration description.
      Parameters:
      duration -
      units -
      Returns:
      true if it is valid
    • clone

      public Object clone()
      Deprecated.
      Since:
      3.3.2