public SMFHeader withAttributesInOrder(List<SMFAttribute> value) { List<SMFAttribute> newValue = attributesInOrder_from(value); if (this.attributesInOrder == newValue) return this; return validate(new SMFHeader(this, this.triangles, this.vertexCount, this.schemaIdentifier, this.coordinateSystem, newValue)); }
public SMFHeader withAttributesInOrder(List<SMFAttribute> value) { List<SMFAttribute> newValue = attributesInOrder_from(value); if (this.attributesInOrder == newValue) return this; return validate(new SMFHeader( this, this.triangles, this.vertexCount, this.schemaIdentifier, this.coordinateSystem, newValue, this.metaCount)); }
private SMFHeader( SMFTriangles triangles, long vertexCount, SMFSchemaIdentifier schemaIdentifier, SMFCoordinateSystem coordinateSystem, List<SMFAttribute> attributesInOrder, long metaCount) { this.triangles = Objects.requireNonNull(triangles, "triangles"); this.vertexCount = vertexCount; this.schemaIdentifier = Objects.requireNonNull(schemaIdentifier, "schemaIdentifier"); this.coordinateSystem = Objects.requireNonNull(coordinateSystem, "coordinateSystem"); this.attributesInOrder = attributesInOrder_from(attributesInOrder); this.metaCount = metaCount; initShim.setVertexCount(this.vertexCount); initShim.setMetaCount(this.metaCount); this.attributesByName = initShim.attributesByName(); this.initShim = null; }
private SMFHeader( SMFTriangles triangles, long vertexCount, Optional<SMFSchemaIdentifier> schemaIdentifier, SMFCoordinateSystem coordinateSystem, List<SMFAttribute> attributesInOrder) { this.triangles = Objects.requireNonNull(triangles, "triangles"); this.vertexCount = vertexCount; this.schemaIdentifier = schemaIdentifier.orElse(null); this.coordinateSystem = Objects.requireNonNull(coordinateSystem, "coordinateSystem"); this.attributesInOrder = attributesInOrder_from(attributesInOrder); initShim.setTriangles(this.triangles); initShim.setVertexCount(this.vertexCount); initShim.setCoordinateSystem(this.coordinateSystem); this.attributesByName = initShim.attributesByName(); this.initShim = null; }