@Generated(value={"Immutables.generator","SMFBSectionType"}) public final class SMFBSection extends Object implements SMFBSectionType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFBSection.Builder
Builds instances of type
SMFBSection. |
SECTION_ALIGNMENT| Modifier and Type | Method and Description |
|---|---|
static SMFBSection.Builder |
builder()
Creates a builder for
SMFBSection. |
static SMFBSection |
copyOf(SMFBSectionType instance)
Creates an immutable copy of a
SMFBSectionType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFBSection that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, sizeOfData, offset, sizeTotal. |
long |
id() |
static SMFBSection |
of(long id,
long sizeOfData,
long offset)
Construct a new immutable
SMFBSection instance. |
long |
offset() |
long |
sizeOfData()
The size of the section data, not including the magic number or this
size value.
|
long |
sizeTotal() |
String |
toString()
Prints the immutable value
SMFBSection with attribute values. |
SMFBSection |
withId(long value)
Copy the current immutable object by setting a value for the
id attribute. |
SMFBSection |
withOffset(long value)
Copy the current immutable object by setting a value for the
offset attribute. |
SMFBSection |
withSizeOfData(long value)
Copy the current immutable object by setting a value for the
sizeOfData attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic long id()
id in interface SMFBSectionTypepublic long sizeOfData()
The size of the section data, not including the magic number or this size value.
sizeOfData() + 8 + 8 must be a multiple of SMFBSectionType.SECTION_ALIGNMENT
sizeOfData in interface SMFBSectionTypepublic long offset()
offset in interface SMFBSectionTypepublic long sizeTotal()
sizeTotal in interface SMFBSectionTypepublic final SMFBSection withId(long value)
id attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final SMFBSection withSizeOfData(long value)
sizeOfData attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for sizeOfDatathis objectpublic final SMFBSection withOffset(long value)
offset attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for offsetthis objectpublic boolean equals(Object another)
SMFBSection that have equal attribute values.public int hashCode()
id, sizeOfData, offset, sizeTotal.public String toString()
SMFBSection with attribute values.public static SMFBSection of(long id, long sizeOfData, long offset)
SMFBSection instance.id - The value for the id attributesizeOfData - The value for the sizeOfData attributeoffset - The value for the offset attributepublic static SMFBSection copyOf(SMFBSectionType instance)
SMFBSectionType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SMFBSection.Builder builder()
SMFBSection.Copyright © 2017 <code@io7m.com> http://io7m.com