SWIG/Examples/java/enum/

Wrapping enumerations

This example tests SWIG's ability to wrap enumerations. SWIG wraps enums in numerous different ways. The default approach is to wrap each enum with the typesafe enum pattern. Enums are handled as integers in the JNI layer. See the documentation for the other approaches for wrapping enums.