public static final class SMFBSection.Builder extends Object
SMFBSection.
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 |
|---|---|
SMFBSection |
build()
Builds a new
SMFBSection. |
SMFBSection.Builder |
from(SMFBSectionType instance)
Fill a builder with attribute values from the provided
SMFBSectionType instance. |
SMFBSection.Builder |
setId(long id)
Initializes the value for the
id attribute. |
SMFBSection.Builder |
setOffset(long offset)
Initializes the value for the
offset attribute. |
SMFBSection.Builder |
setSizeOfData(long sizeOfData)
Initializes the value for the
sizeOfData attribute. |
public final SMFBSection.Builder from(SMFBSectionType instance)
SMFBSectionType 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 SMFBSection.Builder setId(long id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final SMFBSection.Builder setSizeOfData(long sizeOfData)
sizeOfData attribute.sizeOfData - The value for sizeOfDatathis builder for use in a chained invocationpublic final SMFBSection.Builder setOffset(long offset)
offset attribute.offset - The value for offsetthis builder for use in a chained invocationpublic SMFBSection build()
SMFBSection.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com