/** * Prints the immutable value {@code SMFHeader} with attribute values. * @return A string representation of the value */ @Override public String toString() { return "SMFHeader{" + "triangles=" + triangles + ", vertexCount=" + vertexCount + ", schemaIdentifier=" + schemaIdentifier + ", coordinateSystem=" + coordinateSystem + ", attributesInOrder=" + (attributesInOrder().toString()) + ", attributesByName=" + attributesByName + ", metaCount=" + metaCount + "}"; }
private boolean equalTo(SMFHeader another) { return triangles.equals(another.triangles) && vertexCount == another.vertexCount && Objects.equals(schemaIdentifier, another.schemaIdentifier) && coordinateSystem.equals(another.coordinateSystem) && this.attributesInOrder().equals(another.attributesInOrder()) && attributesByName.equals(another.attributesByName); }
private boolean equalTo(SMFHeader another) { return triangles.equals(another.triangles) && vertexCount == another.vertexCount && schemaIdentifier.equals(another.schemaIdentifier) && coordinateSystem.equals(another.coordinateSystem) && this.attributesInOrder().equals(another.attributesInOrder()) && attributesByName.equals(another.attributesByName) && metaCount == another.metaCount; }
/** * Prints the immutable value {@code SMFHeader} with attribute values. * @return A string representation of the value */ @Override public String toString() { StringBuilder builder = new StringBuilder("SMFHeader{"); builder.append("triangles=").append(triangles); builder.append(", "); builder.append("vertexCount=").append(vertexCount); if (schemaIdentifier != null) { builder.append(", "); builder.append("schemaIdentifier=").append(schemaIdentifier); } builder.append(", "); builder.append("coordinateSystem=").append(coordinateSystem); builder.append(", "); builder.append("attributesInOrder=").append(attributesInOrder().toString()); builder.append(", "); builder.append("attributesByName=").append(attributesByName); return builder.append("}").toString(); }
/** * Computes a hash code from attributes: {@code triangles}, {@code vertexCount}, {@code schemaIdentifier}, {@code coordinateSystem}, {@code attributesInOrder}, {@code attributesByName}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + triangles.hashCode(); h += (h << 5) + Long.hashCode(vertexCount); h += (h << 5) + Objects.hashCode(schemaIdentifier); h += (h << 5) + coordinateSystem.hashCode(); h += (h << 5) + (attributesInOrder().hashCode()); h += (h << 5) + attributesByName.hashCode(); return h; }
/** * Computes a hash code from attributes: {@code triangles}, {@code vertexCount}, {@code schemaIdentifier}, {@code coordinateSystem}, {@code attributesInOrder}, {@code attributesByName}, {@code metaCount}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + triangles.hashCode(); h += (h << 5) + Long.hashCode(vertexCount); h += (h << 5) + schemaIdentifier.hashCode(); h += (h << 5) + coordinateSystem.hashCode(); h += (h << 5) + (attributesInOrder().hashCode()); h += (h << 5) + attributesByName.hashCode(); h += (h << 5) + Long.hashCode(metaCount); return h; }
this.state.transition(SerializerState.STATE_HEADER); final List<SMFAttribute> attributes = in_header.attributesInOrder(); this.header = in_header; this.attribute_queue = Queue.ofAll(attributes);
final SMFParserEventsDataAttributesNonInterleavedType ni = ni_opt.get(); try { this.mesh.header().attributesInOrder().forEach(a -> { final Optional<SMFParserEventsDataAttributeValuesType> av_opt = ni.onDataAttributeStart(a);
for (final SMFAttribute attribute : header.attributesInOrder()) { final SMFAttributeName name = attribute.name(); try (final SMFSerializerDataAttributesValuesType sav =
original.withComponentSizeBits(this.size); final List<SMFAttribute> ordered = header.attributesInOrder().replace(original, resampled); final SMFHeader new_header = header.withAttributesInOrder(ordered);
header.attributesInOrder().filter(a -> this.attributes.contains(a.name())); final Map<SMFAttributeName, SMFAttributeArrayType> new_arrays = m.arrays().filter(p -> this.attributes.contains(p._1));
orig_header.attributesInOrder(); final Map<SMFAttributeName, SMFAttribute> orig_by_name = orig_header.attributesByName();
orig_header.attributesInOrder().replace(orig_attrib, new_attrib));