rythm.enum.txt Maven / Gradle / Ivy
@args com.linkedin.pegasus.generator.spec.EnumTemplateSpec enumeration
@import org.coursera.courier.android.JavaSyntax
@if (enumeration.getNamespace() != null && enumeration.getNamespace().length() > 0) {package @enumeration.getNamespace();}
import javax.annotation.Generated;
@{ String className = JavaSyntax.escapeKeyword(enumeration.getClassName()) }
@** TODO: need an UNKNOWN symbol.
* https://github.com/google/gson/issues/640
* Maybe we just need to use strings to represent enum values?
*@
@classAnnotations(enumeration.getSchema())
public enum @className {
@for(String symbol: enumeration.getSchema().getSymbols()) {
@JavaSyntax.escapeKeyword(symbol),
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy