Package jnr.ffi

Class Struct.Double

    • Constructor Detail

      • Double

        public Double()
    • Method Detail

      • get

        public final double get()
      • set

        public final void set​(double value)
      • set

        public void set​(java.lang.Number value)
        Description copied from class: Struct.NumberField
        Sets the field to a new value.
        Specified by:
        set in class Struct.NumberField
        Parameters:
        value - The new value.
      • intValue

        public final int intValue()
        Description copied from class: Struct.NumberField
        Returns a int representation of this Number.
        Specified by:
        intValue in class Struct.NumberField
        Returns:
        a int value for this Number.
      • longValue

        public final long longValue()
        Description copied from class: Struct.NumberField
        Returns a long representation of this Number.
        Overrides:
        longValue in class Struct.NumberField
        Returns:
        a long value for this Number.
      • floatValue

        public final float floatValue()
        Description copied from class: Struct.NumberField
        Returns an float representation of this Number.
        Overrides:
        floatValue in class Struct.NumberField
        Returns:
        an float value for this Number.
      • doubleValue

        public final double doubleValue()
        Description copied from class: Struct.NumberField
        Returns an float representation of this Number.
        Overrides:
        doubleValue in class Struct.NumberField
        Returns:
        an float value for this Number.
      • toString

        public final java.lang.String toString()
        Description copied from class: Struct.NumberField
        Returns a string representation of this Number.
        Overrides:
        toString in class Struct.NumberField
        Returns:
        a string representation of this Number.