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

rythm-android.recordFields.txt Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
@args com.linkedin.pegasus.generator.spec.RecordTemplateSpec record, org.coursera.courier.android.JavaSyntax syntax, boolean builder
@import com.linkedin.pegasus.generator.spec.RecordTemplateSpec.Field
@import com.linkedin.data.schema.DataSchema

@for(Field field: record.getFields()) {
  @{ String fieldName = syntax.escapeKeyword(field.getSchemaField().getName()) }

  @if(field.getCustomInfo() != null) {
    @@JsonAdapter(@(syntax.toType(field.getCustomInfo().getCoercerClass())).class)
  }
  @fieldAnnotations(field)
  @if(!fieldName.equals(field.getSchemaField().getName())) { @@SerializedName("@field.getSchemaField().getName()") }
  public @if(builder){transient} else {final} @syntax.toOptionalType(field.getType(), field.getSchemaField().getOptional()) @fieldName;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy