@Generated(value={"Immutables.generator","SMFByteBufferPackedAttributeSetType"}) public final class SMFByteBufferPackedAttributeSet extends Object implements SMFByteBufferPackedAttributeSetType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFByteBufferPackedAttributeSet.Builder
Builds instances of type
SMFByteBufferPackedAttributeSet. |
| Modifier and Type | Method and Description |
|---|---|
static SMFByteBufferPackedAttributeSet.Builder |
builder()
Creates a builder for
SMFByteBufferPackedAttributeSet. |
ByteBuffer |
byteBuffer() |
SMFByteBufferPackingConfiguration |
configuration() |
static SMFByteBufferPackedAttributeSet |
copyOf(SMFByteBufferPackedAttributeSetType instance)
Creates an immutable copy of a
SMFByteBufferPackedAttributeSetType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFByteBufferPackedAttributeSet that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, configuration, byteBuffer. |
int |
id() |
static SMFByteBufferPackedAttributeSet |
of(int id,
SMFByteBufferPackingConfiguration configuration,
ByteBuffer byteBuffer)
Construct a new immutable
SMFByteBufferPackedAttributeSet instance. |
String |
toString()
Prints the immutable value
SMFByteBufferPackedAttributeSet with attribute values. |
SMFByteBufferPackedAttributeSet |
withByteBuffer(ByteBuffer value)
Copy the current immutable object by setting a value for the
byteBuffer attribute. |
SMFByteBufferPackedAttributeSet |
withConfiguration(SMFByteBufferPackingConfiguration value)
Copy the current immutable object by setting a value for the
configuration attribute. |
SMFByteBufferPackedAttributeSet |
withId(int value)
Copy the current immutable object by setting a value for the
id attribute. |
public int id()
id in interface SMFByteBufferPackedAttributeSetTypepublic SMFByteBufferPackingConfiguration configuration()
configuration in interface SMFByteBufferPackedAttributeSetTypepublic ByteBuffer byteBuffer()
byteBuffer in interface SMFByteBufferPackedAttributeSetTypepublic final SMFByteBufferPackedAttributeSet withId(int 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 SMFByteBufferPackedAttributeSet withConfiguration(SMFByteBufferPackingConfiguration value)
configuration attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for configurationthis objectpublic final SMFByteBufferPackedAttributeSet withByteBuffer(ByteBuffer value)
byteBuffer attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for byteBufferthis objectpublic boolean equals(Object another)
SMFByteBufferPackedAttributeSet that have equal attribute values.public int hashCode()
id, configuration, byteBuffer.public String toString()
SMFByteBufferPackedAttributeSet with attribute values.public static SMFByteBufferPackedAttributeSet of(int id, SMFByteBufferPackingConfiguration configuration, ByteBuffer byteBuffer)
SMFByteBufferPackedAttributeSet instance.id - The value for the id attributeconfiguration - The value for the configuration attributebyteBuffer - The value for the byteBuffer attributepublic static SMFByteBufferPackedAttributeSet copyOf(SMFByteBufferPackedAttributeSetType instance)
SMFByteBufferPackedAttributeSetType 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 SMFByteBufferPackedAttributeSet.Builder builder()
SMFByteBufferPackedAttributeSet.Copyright © 2017 <code@io7m.com> http://io7m.com