Package com.qfs.jna
Interface IJnaEnum<T extends IJnaEnum<T>>
- Type Parameters:
T- The type of the JNA enum.
- All Known Implementing Classes:
lgrp_affinity,lgrp_content,lgrp_lat_between,lgrp_mem_size_flag,lgrp_view
public interface IJnaEnum<T extends IJnaEnum<T>>
An interface to be implemented by enum in order to be passed as arguments to native calls made
using JNA.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptiongetForValue(int i) Returns the Java enum object associated to the given native integer ID.intRetrieve the integer ID associated with this element in native code.
-
Method Details
-
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
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.
-