this.triangle_size)); header_b.setVertexCount(this.vertex_count); header_b.setSchemaIdentifier(this.schema_id); header_b.setCoordinateSystem(this.coords); header_b.setMetaCount(this.meta_count);
/** * Fill a builder with attribute values from the provided {@code SMFHeaderType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(SMFHeaderType instance) { Objects.requireNonNull(instance, "instance"); setTriangles(instance.triangles()); setVertexCount(instance.vertexCount()); Optional<SMFSchemaIdentifier> schemaIdentifierOptional = instance.schemaIdentifier(); if (schemaIdentifierOptional.isPresent()) { setSchemaIdentifier(schemaIdentifierOptional); } setCoordinateSystem(instance.coordinateSystem()); setAttributesInOrder(instance.attributesInOrder()); return this; }
/** * Fill a builder with attribute values from the provided {@code SMFHeaderType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(SMFHeaderType instance) { Objects.requireNonNull(instance, "instance"); setTriangles(instance.triangles()); setVertexCount(instance.vertexCount()); setSchemaIdentifier(instance.schemaIdentifier()); setCoordinateSystem(instance.coordinateSystem()); setAttributesInOrder(instance.attributesInOrder()); setMetaCount(instance.metaCount()); return this; }