private static List<SMFErrorType> checkComponentCount( final List<SMFErrorType> errors, final SMFAttributeName name, final SMFSchemaAttribute attr_schema, final SMFAttribute attr) { final OptionalInt req_count_opt = attr_schema.requiredComponentCount(); if (req_count_opt.isPresent()) { final int req_count = req_count_opt.getAsInt(); if (attr.componentCount() != req_count) { return errors.append(errorWrongComponentCount( name, req_count, attr.componentCount())); } } return errors; }
if (a.componentType() == type && a.componentCount() == count) { return; sb.append(System.lineSeparator()); sb.append(" Attribute type: "); sb.append(a.componentCount()); sb.append(" components of type "); sb.append(a.componentType().name());
attribute.name().value(), attribute.componentType().getName(), Long.toUnsignedString((long) attribute.componentCount()), Long.toUnsignedString((long) attribute.componentSizeBits()))); this.writer.newLine();
count_ok = this.config.componentCount().getAsInt() == attr.componentCount(); "An attribute '%s' with %d components of type %s with size %d", attr.name().value(), Integer.valueOf(attr.componentCount()), attr.componentType().getName(), Integer.valueOf(attr.componentSizeBits()))));
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 3, n -> "Attribute must have 3 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 4, n -> "Attribute must have 4 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 3, n -> "Attribute must have 3 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 4, n -> "Attribute must have 4 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 4, n -> "Attribute must have 4 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 2, n -> "Attribute must have 2 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 1, n -> "Attribute must have 1 component"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 3, n -> "Attribute must have 3 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 2, n -> "Attribute must have 2 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 1, n -> "Attribute must have 1 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 2, n -> "Attribute must have 2 components"); Preconditions.checkPrecondition(
a -> "Packed attribute must exist in configuration"); Preconditions.checkPreconditionI( attr.componentCount(), attr.componentCount() == 1, n -> "Attribute must have 1 components"); Preconditions.checkPrecondition(
new Attribute(received_attribute.componentCount(), decided); final Integer b_index = Integer.valueOf(required_attribute.index());
switch (attribute.componentType()) { case ELEMENT_TYPE_INTEGER_SIGNED: { switch (attribute.componentCount()) { case 1: { this.cursor_signed1 = SMFByteBufferCursors.createSigned1( switch (attribute.componentCount()) { case 1: { this.cursor_unsigned1 = SMFByteBufferCursors.createUnsigned1( switch (attribute.componentCount()) { case 1: { this.cursor_float1 = SMFByteBufferCursors.createFloat1(
switch (this.attribute_current.componentCount()) { case 4: { this.arrays = this.arrays.put( switch (this.attribute_current.componentCount()) { case 4: { this.arrays = this.arrays.put( switch (this.attribute_current.componentCount()) { case 4: { this.arrays = this.arrays.put(