if (isValidValue(fields()[0], other.b)) { this.b = data().deepCopy(fields()[0].schema(), other.b); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.i32)) { this.i32 = data().deepCopy(fields()[1].schema(), other.i32); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.i64)) { this.i64 = data().deepCopy(fields()[2].schema(), other.i64); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.f32)) { this.f32 = data().deepCopy(fields()[3].schema(), other.f32); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.f64)) { this.f64 = data().deepCopy(fields()[4].schema(), other.f64); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.s)) { this.s = data().deepCopy(fields()[5].schema(), other.s); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.d)) { this.d = data().deepCopy(fields()[6].schema(), other.d); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.t)) {
@Override @SuppressWarnings("unchecked") public TestRecordWithJsr310LogicalTypes build() { try { TestRecordWithJsr310LogicalTypes record = new TestRecordWithJsr310LogicalTypes(); record.b = fieldSetFlags()[0] ? this.b : (java.lang.Boolean) defaultValue(fields()[0]); record.i32 = fieldSetFlags()[1] ? this.i32 : (java.lang.Integer) defaultValue(fields()[1]); record.i64 = fieldSetFlags()[2] ? this.i64 : (java.lang.Long) defaultValue(fields()[2]); record.f32 = fieldSetFlags()[3] ? this.f32 : (java.lang.Float) defaultValue(fields()[3]); record.f64 = fieldSetFlags()[4] ? this.f64 : (java.lang.Double) defaultValue(fields()[4]); record.s = fieldSetFlags()[5] ? this.s : (java.lang.CharSequence) defaultValue(fields()[5]); record.d = fieldSetFlags()[6] ? this.d : (java.time.LocalDate) defaultValue(fields()[6]); record.t = fieldSetFlags()[7] ? this.t : (java.time.LocalTime) defaultValue(fields()[7]); record.ts = fieldSetFlags()[8] ? this.ts : (java.time.Instant) defaultValue(fields()[8]); record.dec = fieldSetFlags()[9] ? this.dec : (java.math.BigDecimal) defaultValue(fields()[9]); return record; } catch (java.lang.Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
if (isValidValue(fields()[0], other.b)) { this.b = data().deepCopy(fields()[0].schema(), other.b); fieldSetFlags()[0] = other.fieldSetFlags()[0]; if (isValidValue(fields()[1], other.i32)) { this.i32 = data().deepCopy(fields()[1].schema(), other.i32); fieldSetFlags()[1] = other.fieldSetFlags()[1]; if (isValidValue(fields()[2], other.i64)) { this.i64 = data().deepCopy(fields()[2].schema(), other.i64); fieldSetFlags()[2] = other.fieldSetFlags()[2]; if (isValidValue(fields()[3], other.f32)) { this.f32 = data().deepCopy(fields()[3].schema(), other.f32); fieldSetFlags()[3] = other.fieldSetFlags()[3]; if (isValidValue(fields()[4], other.f64)) { this.f64 = data().deepCopy(fields()[4].schema(), other.f64); fieldSetFlags()[4] = other.fieldSetFlags()[4]; if (isValidValue(fields()[5], other.s)) { this.s = data().deepCopy(fields()[5].schema(), other.s); fieldSetFlags()[5] = other.fieldSetFlags()[5]; if (isValidValue(fields()[6], other.d)) { this.d = data().deepCopy(fields()[6].schema(), other.d); fieldSetFlags()[6] = other.fieldSetFlags()[6]; if (isValidValue(fields()[7], other.t)) {
/** * Checks whether the 'ts' field has been set. * @return True if the 'ts' field has been set, false otherwise. */ public boolean hasTs() { return fieldSetFlags()[8]; }
/** * Clears the value of the 't' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearT() { fieldSetFlags()[7] = false; return this; }
/** * Clears the value of the 'd' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearD() { fieldSetFlags()[6] = false; return this; }
/** * Clears the value of the 'f32' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearF32() { fieldSetFlags()[3] = false; return this; }
/** * Checks whether the 'f32' field has been set. * @return True if the 'f32' field has been set, false otherwise. */ public boolean hasF32() { return fieldSetFlags()[3]; }
/** * Checks whether the 'i32' field has been set. * @return True if the 'i32' field has been set, false otherwise. */ public boolean hasI32() { return fieldSetFlags()[1]; }
/** * Clears the value of the 'b' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearB() { fieldSetFlags()[0] = false; return this; }
/** * Checks whether the 'dec' field has been set. * @return True if the 'dec' field has been set, false otherwise. */ public boolean hasDec() { return fieldSetFlags()[9]; }
/** * Checks whether the 't' field has been set. * @return True if the 't' field has been set, false otherwise. */ public boolean hasT() { return fieldSetFlags()[7]; }
/** * Checks whether the 'f64' field has been set. * @return True if the 'f64' field has been set, false otherwise. */ public boolean hasF64() { return fieldSetFlags()[4]; }
/** * Clears the value of the 'i64' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearI64() { fieldSetFlags()[2] = false; return this; }
/** * Checks whether the 'b' field has been set. * @return True if the 'b' field has been set, false otherwise. */ public boolean hasB() { return fieldSetFlags()[0]; }
/** * Clears the value of the 'dec' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearDec() { dec = null; fieldSetFlags()[9] = false; return this; }
/** * Clears the value of the 'ts' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearTs() { fieldSetFlags()[8] = false; return this; }
/** * Clears the value of the 's' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearS() { s = null; fieldSetFlags()[5] = false; return this; }
/** * Checks whether the 'i64' field has been set. * @return True if the 'i64' field has been set, false otherwise. */ public boolean hasI64() { return fieldSetFlags()[2]; }
/** * Clears the value of the 'i32' field. * @return This builder. */ public TestRecordWithJsr310LogicalTypes.Builder clearI32() { fieldSetFlags()[1] = false; return this; }