Annotation Type FaunaEnum


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface FaunaEnum

    Instruct the encoder/decoder to rename the annotated enum field.

    If absent, the method Enum.name() will be used instead.

    
     enum CpuTypes {
         @FaunaEnum("x86_32") X86,
         @FaunaEnum("x86_64") X86_64,
         ARM,
         MIPS
     }
     
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value