Package io.jenetics

Interface NumericGene<N extends Number & Comparable<? super N>,​G extends NumericGene<N,​G>>

    • Method Detail

      • byteValue

        default byte byteValue()
        Returns the value of the specified gene as an byte. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type byte.
      • shortValue

        default short shortValue()
        Returns the value of the specified gene as an short. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type short.
      • intValue

        default int intValue()
        Returns the value of the specified gene as an int. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type int.
      • longValue

        default long longValue()
        Returns the value of the specified gene as an long. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type long.
      • floatValue

        default float floatValue()
        Returns the value of the specified gene as an float. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type float.
      • doubleValue

        default double doubleValue()
        Returns the value of the specified gene as an double. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type double.