All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rythm.enum.txt Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
@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