Class EnumConverter

java.lang.Object
dev.gothickit.zenkit.utils.EnumConverter
All Implemented Interfaces:
com.sun.jna.FromNativeConverter, com.sun.jna.ToNativeConverter, com.sun.jna.TypeConverter

public class EnumConverter extends Object implements com.sun.jna.TypeConverter
  • Constructor Details

    • EnumConverter

      public EnumConverter()
  • Method Details

    • fromNative

      public Object fromNative(Object nativeValue, com.sun.jna.FromNativeContext context)
      Specified by:
      fromNative in interface com.sun.jna.FromNativeConverter
    • toNative

      public Object toNative(Object value, com.sun.jna.ToNativeContext context)
      Specified by:
      toNative in interface com.sun.jna.ToNativeConverter
    • nativeType

      public Class<?> nativeType()
      Specified by:
      nativeType in interface com.sun.jna.FromNativeConverter
      Specified by:
      nativeType in interface com.sun.jna.ToNativeConverter