java.lang.Object
org.apache.myfaces.tobago.internal.layout.MathUtils

@Deprecated public final class MathUtils extends Object
Deprecated.
since 3.0.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Deprecated.
    Values smaller than this EPSILON should be treated as zero.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    adjustRemainders(double[] list, double initialBias)
    Deprecated.
    Adjusts the list of double values to rounded values with the same sum.
    static double
    Deprecated.
     
    static double
    Deprecated.
     
    static boolean
    isInteger(double value)
    Deprecated.
     
    static boolean
    isNotInteger(double value)
    Deprecated.
     
    static boolean
    isNotZero(double factor)
    Deprecated.
     
    static boolean
    isZero(double factor)
    Deprecated.
     
    static double
    remainder(double v)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EPSILON

      public static final double EPSILON
      Deprecated.
      Values smaller than this EPSILON should be treated as zero.
      See Also:
  • Method Details

    • adjustRemainders

      public static void adjustRemainders(double[] list, double initialBias)
      Deprecated.
      Adjusts the list of double values to rounded values with the same sum. E. g. 2.3, 2.4, 2.5, 2.8 -> 2.0, 2.0, 3.0, 3.0
    • findAndAdjustMaxRemainder

      public static double findAndAdjustMaxRemainder(double[] list)
      Deprecated.
    • findAndAdjustMinRemainder

      public static double findAndAdjustMinRemainder(double[] list)
      Deprecated.
    • remainder

      public static double remainder(double v)
      Deprecated.
    • isZero

      public static boolean isZero(double factor)
      Deprecated.
    • isNotZero

      public static boolean isNotZero(double factor)
      Deprecated.
    • isInteger

      public static boolean isInteger(double value)
      Deprecated.
    • isNotInteger

      public static boolean isNotInteger(double value)
      Deprecated.