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

scala.class_impls_merge.ssp Maven / Gradle / Ivy

The newest version!
<%@ val cls: com.foursquare.spindle.codegen.runtime.StructLike %>
  override def merge(that: ${cls.name}): Unit = {
#for (field <- cls.fields)
    if (that.${field.isSetName} && !this.${field.isSetName}) {
      this.${field.escapedName}_=(that.${field.defaultName})
#if (field.renderType.isContainer)
    } else if (that.${field.isSetName} && this.${field.isSetName}) {
      this.${field.escapedName}_=(this.${field.escapedName} ++ that.${field.escapedName})
#end
    }
#end
  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy