Package com.qfs.jna

Interface IJnaEnum<T extends IJnaEnum<T>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getForValue​(int i)
      Returns the Java enum object associated to the given native integer ID.
      int getIntValue()
      Retrieve the integer ID associated with this element in native code.
    • Method Detail

      • getIntValue

        int getIntValue()
        Retrieve the integer ID associated with this element in native code.
        Returns:
        the integer ID associated with this element in native code.
      • getForValue

        T getForValue​(int i)
        Returns the Java enum object associated to the given native integer ID.

        This function is technically speaking static: it does not read or set the value of the object, but it is made an instance method to make sure it is implemented.

        Parameters:
        i - The native ID.
        Returns:
        The associated JNA object.