/** Creates a Builder by copying an existing BreakendMate instance */ private Builder(org.opencb.biodata.models.variant.avro.BreakendMate other) { super(org.opencb.biodata.models.variant.avro.BreakendMate.SCHEMA$); if (isValidValue(fields()[0], other.chromosome)) { this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.position)) { this.position = data().deepCopy(fields()[1].schema(), other.position); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.ciPositionLeft)) { this.ciPositionLeft = data().deepCopy(fields()[2].schema(), other.ciPositionLeft); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.ciPositionRight)) { this.ciPositionRight = data().deepCopy(fields()[3].schema(), other.ciPositionRight); fieldSetFlags()[3] = true; } }
/** Creates a Builder by copying an existing Builder */ private Builder(org.opencb.biodata.models.variant.avro.BreakendMate.Builder other) { super(other); if (isValidValue(fields()[0], other.chromosome)) { this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome); fieldSetFlags()[0] = true; } if (isValidValue(fields()[1], other.position)) { this.position = data().deepCopy(fields()[1].schema(), other.position); fieldSetFlags()[1] = true; } if (isValidValue(fields()[2], other.ciPositionLeft)) { this.ciPositionLeft = data().deepCopy(fields()[2].schema(), other.ciPositionLeft); fieldSetFlags()[2] = true; } if (isValidValue(fields()[3], other.ciPositionRight)) { this.ciPositionRight = data().deepCopy(fields()[3].schema(), other.ciPositionRight); fieldSetFlags()[3] = true; } }