Class MathUtils
- 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 double
EPSILON
Deprecated.Values smaller than this EPSILON should be treated as zero.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods 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
findAndAdjustMaxRemainder(double[] list)
Deprecated.static double
findAndAdjustMinRemainder(double[] list)
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.
-
-
-
Field Detail
-
EPSILON
public static final double EPSILON
Deprecated.Values smaller than this EPSILON should be treated as zero.- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-