Package jnr.ffi

Class Struct.IntegerAlias

    • Method Detail

      • 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.
      • set

        public void set​(long value)
      • get

        public final long get()
        Gets the value for this field.
        Returns:
        a long.
      • intValue

        public 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.
      • toString

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