SMFTV1BodyParser( final SMFTAbstractParser in_parent, final SMFParserEventsType in_events, final SMFTLineReaderType in_reader, final SMFFormatVersion in_version, final SMFHeader in_header) { super( in_events, in_reader, NullCheck.notNull(in_parent, "Parent").state); this.header = NullCheck.notNull(in_header, "Header"); this.attributes_ok = HashMap.empty(); this.attributes_attempted = HashMap.empty(); }
SMFTV1HeaderParser( final SMFTAbstractParser in_parent, final SMFParserEventsType in_events, final SMFTLineReaderType in_reader, final SMFFormatVersion in_version) { super( in_events, in_reader, NullCheck.notNull(in_parent, "Parent").state); this.attribute_lines = HashMap.empty(); this.attributes_list = List.empty(); this.ok_triangles = false; this.ok_vertices = false; this.schema_id = SMFSchemaIdentifier.of(0, 0, 0, 0); }
private SMFMemoryMeshProducer() { this.started = false; this.errors = List.empty(); this.warnings = List.empty(); this.arrays = HashMap.empty(); this.triangles = Vector.empty(); this.metadata = Vector.empty(); }
/** * Check preconditions for the type. */ @Value.Check default void checkPreconditions() { HashMap<Integer, SMFByteBufferPackedAttribute> m = HashMap.empty(); final SortedMap<Integer, SMFByteBufferPackedAttribute> by_offset = this.packedAttributesByOffset(); for (final Integer offset : by_offset.keySet()) { Preconditions.checkPreconditionI( offset.intValue(), !m.containsKey(offset), i -> "All attribute offsets must be unique"); m = m.put(offset, by_offset.get(offset).get()); } } }