public static final class SMFByteBufferPackedAttribute.Builder extends Object
SMFByteBufferPackedAttribute.
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 |
|---|---|
SMFByteBufferPackedAttribute |
build()
Builds a new
SMFByteBufferPackedAttribute. |
SMFByteBufferPackedAttribute.Builder |
from(SMFByteBufferPackedAttributeType instance)
Fill a builder with attribute values from the provided
SMFByteBufferPackedAttributeType instance. |
SMFByteBufferPackedAttribute.Builder |
setAttribute(SMFAttribute attribute)
Initializes the value for the
attribute attribute. |
SMFByteBufferPackedAttribute.Builder |
setOffsetOctets(int offsetOctets)
Initializes the value for the
offsetOctets attribute. |
SMFByteBufferPackedAttribute.Builder |
setOrder(int order)
Initializes the value for the
order attribute. |
public final SMFByteBufferPackedAttribute.Builder from(SMFByteBufferPackedAttributeType instance)
SMFByteBufferPackedAttributeType 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 SMFByteBufferPackedAttribute.Builder setAttribute(SMFAttribute attribute)
attribute attribute.attribute - The value for attributethis builder for use in a chained invocationpublic final SMFByteBufferPackedAttribute.Builder setOrder(int order)
order attribute.order - The value for orderthis builder for use in a chained invocationpublic final SMFByteBufferPackedAttribute.Builder setOffsetOctets(int offsetOctets)
offsetOctets attribute.offsetOctets - The value for offsetOctetsthis builder for use in a chained invocationpublic SMFByteBufferPackedAttribute build()
SMFByteBufferPackedAttribute.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com