@Generated(value={"Immutables.generator","SMFByteBufferPackedAttributeType"}) public final class SMFByteBufferPackedAttribute extends Object implements SMFByteBufferPackedAttributeType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFByteBufferPackedAttribute.Builder
Builds instances of type
SMFByteBufferPackedAttribute. |
| Modifier and Type | Method and Description |
|---|---|
SMFAttribute |
attribute() |
static SMFByteBufferPackedAttribute.Builder |
builder()
Creates a builder for
SMFByteBufferPackedAttribute. |
static SMFByteBufferPackedAttribute |
copyOf(SMFByteBufferPackedAttributeType instance)
Creates an immutable copy of a
SMFByteBufferPackedAttributeType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFByteBufferPackedAttribute that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
attribute, order, offsetOctets. |
static SMFByteBufferPackedAttribute |
of(SMFAttribute attribute,
int order,
int offsetOctets)
Construct a new immutable
SMFByteBufferPackedAttribute instance. |
int |
offsetOctets()
A specification of the offset in octets from the start of each vertex
at which this attribute's data will be written.
|
int |
order() |
String |
toString()
Prints the immutable value
SMFByteBufferPackedAttribute with attribute values. |
SMFByteBufferPackedAttribute |
withAttribute(SMFAttribute value)
Copy the current immutable object by setting a value for the
attribute attribute. |
SMFByteBufferPackedAttribute |
withOffsetOctets(int value)
Copy the current immutable object by setting a value for the
offsetOctets attribute. |
SMFByteBufferPackedAttribute |
withOrder(int value)
Copy the current immutable object by setting a value for the
order attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic SMFAttribute attribute()
attribute in interface SMFByteBufferPackedAttributeTypepublic int order()
order in interface SMFByteBufferPackedAttributeTypepublic int offsetOctets()
offsetOctets in interface SMFByteBufferPackedAttributeTypepublic final SMFByteBufferPackedAttribute withAttribute(SMFAttribute value)
attribute attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for attributethis objectpublic final SMFByteBufferPackedAttribute withOrder(int value)
order attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for orderthis objectpublic final SMFByteBufferPackedAttribute withOffsetOctets(int value)
offsetOctets attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for offsetOctetsthis objectpublic boolean equals(Object another)
SMFByteBufferPackedAttribute that have equal attribute values.public int hashCode()
attribute, order, offsetOctets.public String toString()
SMFByteBufferPackedAttribute with attribute values.public static SMFByteBufferPackedAttribute of(SMFAttribute attribute, int order, int offsetOctets)
SMFByteBufferPackedAttribute instance.attribute - The value for the attribute attributeorder - The value for the order attributeoffsetOctets - The value for the offsetOctets attributepublic static SMFByteBufferPackedAttribute copyOf(SMFByteBufferPackedAttributeType instance)
SMFByteBufferPackedAttributeType 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 SMFByteBufferPackedAttribute.Builder builder()
SMFByteBufferPackedAttribute.Copyright © 2017 <code@io7m.com> http://io7m.com