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

scala.class_impls_copy.ssp Maven / Gradle / Ivy

The newest version!
<%
  // Copyright 2013 Foursquare Labs Inc. All Rights Reserved.

  import com.foursquare.spindle.codegen.runtime.StructLike
%>
<%@ val cls: StructLike %>
  override def copy(
      ${cls.fields.map(field => "%s: %s = %sOrNull".format(field.escapedName, field.renderType.boxedText, field.name)).mkString(",\n      ")}
  ): Raw${cls.name} = {
    val ret = new Raw${cls.name}
#for (field <- cls.fields)
    if (${field.escapedName} != null) ret.${field.escapedName}_=(${field.escapedName})
#end
    ret
  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy