@Retention(value=RUNTIME)
@Target(value=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
}
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |