Class DoubleFpPrimitives

java.lang.Object
com.illumon.iris.libs.primitives.DoubleFpPrimitives

public class DoubleFpPrimitives extends Object
A set of commonly used doubleing point numeric functions that can be applied to Double types.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    containsNonNormal(double[] values)
    Returns true if the values contains any non-normal value, where "normal" is defined as not infinite, not NaN, and not null.
    static boolean
    Returns true if the values contains any non-normal value, where "normal" is defined as not infinite, not NaN, and not null.
    static boolean
    isInf(double value)
    Returns true if the value is infinite and false otherwise.
    static boolean
    isNaN(double value)
    Returns true if the value is NaN and false otherwise.
    static boolean
    isNormal(double value)
    Returns true if the value is normal, where "normal" is defined as not infinite, not NaN, and not null.

    Methods inherited from class java.lang.Object

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

    • DoubleFpPrimitives

      public DoubleFpPrimitives()
  • Method Details

    • isNaN

      public static boolean isNaN(double value)
      Returns true if the value is NaN and false otherwise.
      Parameters:
      value - value.
      Returns:
      true if the value is NaN and false otherwise.
    • isInf

      public static boolean isInf(double value)
      Returns true if the value is infinite and false otherwise.
      Parameters:
      value - value.
      Returns:
      true if the value is infinite and false otherwise.
    • isNormal

      public static boolean isNormal(double value)
      Returns true if the value is normal, where "normal" is defined as not infinite, not NaN, and not null.
      Parameters:
      value - value.
      Returns:
      true if the value is not infinite, NaN, nor null; false otherwise
    • containsNonNormal

      public static boolean containsNonNormal(Double... values)
      Returns true if the values contains any non-normal value, where "normal" is defined as not infinite, not NaN, and not null.
      Parameters:
      values - values.
      Returns:
      true if any value is not normal; false otherwise.
      See Also:
    • containsNonNormal

      public static boolean containsNonNormal(double[] values)
      Returns true if the values contains any non-normal value, where "normal" is defined as not infinite, not NaN, and not null.
      Parameters:
      values - values.
      Returns:
      true if any value is not normal; false otherwise.
      See Also: