/** Creates a Builder by copying an existing Builder */ private Builder(org.opencb.biodata.models.variant.metadata.VariantFileHeaderComplexLine.Builder other) { super(other); if (isValidValue(fields()[0], other.key)) { this.key = data().deepCopy(fields()[0].schema(), other.key); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.id)) { this.id = data().deepCopy(fields()[1].schema(), other.id); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.description)) { this.description = data().deepCopy(fields()[2].schema(), other.description); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.number)) { this.number = data().deepCopy(fields()[3].schema(), other.number); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.type)) { this.type = data().deepCopy(fields()[4].schema(), other.type); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.genericFields)) { this.genericFields = data().deepCopy(fields()[5].schema(), other.genericFields); fieldSetFlags()[5] = true; } }
/** Creates a Builder by copying an existing VariantFileHeaderComplexLine instance */ private Builder(org.opencb.biodata.models.variant.metadata.VariantFileHeaderComplexLine other) { super(org.opencb.biodata.models.variant.metadata.VariantFileHeaderComplexLine.SCHEMA$); if (isValidValue(fields()[0], other.key)) { this.key = data().deepCopy(fields()[0].schema(), other.key); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.id)) { this.id = data().deepCopy(fields()[1].schema(), other.id); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.description)) { this.description = data().deepCopy(fields()[2].schema(), other.description); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.number)) { this.number = data().deepCopy(fields()[3].schema(), other.number); fieldSetFlags()[3] = true; } if (isValidValue(fields()[4], other.type)) { this.type = data().deepCopy(fields()[4].schema(), other.type); fieldSetFlags()[4] = true; } if (isValidValue(fields()[5], other.genericFields)) { this.genericFields = data().deepCopy(fields()[5].schema(), other.genericFields); fieldSetFlags()[5] = true; } }