public static final class SMFByteBufferPackedAttributeSet.Builder extends Object
SMFByteBufferPackedAttributeSet.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SMFByteBufferPackedAttributeSet |
build()
Builds a new
SMFByteBufferPackedAttributeSet. |
SMFByteBufferPackedAttributeSet.Builder |
from(SMFByteBufferPackedAttributeSetType instance)
Fill a builder with attribute values from the provided
SMFByteBufferPackedAttributeSetType instance. |
SMFByteBufferPackedAttributeSet.Builder |
setByteBuffer(ByteBuffer byteBuffer)
Initializes the value for the
byteBuffer attribute. |
SMFByteBufferPackedAttributeSet.Builder |
setConfiguration(SMFByteBufferPackingConfiguration configuration)
Initializes the value for the
configuration attribute. |
SMFByteBufferPackedAttributeSet.Builder |
setId(int id)
Initializes the value for the
id attribute. |
public final SMFByteBufferPackedAttributeSet.Builder from(SMFByteBufferPackedAttributeSetType instance)
SMFByteBufferPackedAttributeSetType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SMFByteBufferPackedAttributeSet.Builder setId(int id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final SMFByteBufferPackedAttributeSet.Builder setConfiguration(SMFByteBufferPackingConfiguration configuration)
configuration attribute.configuration - The value for configurationthis builder for use in a chained invocationpublic final SMFByteBufferPackedAttributeSet.Builder setByteBuffer(ByteBuffer byteBuffer)
byteBuffer attribute.byteBuffer - The value for byteBufferthis builder for use in a chained invocationpublic SMFByteBufferPackedAttributeSet build()
SMFByteBufferPackedAttributeSet.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com