@Generated(value={"Immutables.generator","SMFAttributeType"}) public final class SMFAttribute extends Object implements SMFAttributeType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFAttribute.Builder
Builds instances of type
SMFAttribute. |
| Modifier and Type | Method and Description |
|---|---|
static SMFAttribute.Builder |
builder()
Creates a builder for
SMFAttribute. |
int |
componentCount() |
int |
componentSizeBits() |
int |
componentSizeOctets() |
SMFComponentType |
componentType() |
static SMFAttribute |
copyOf(SMFAttributeType instance)
Creates an immutable copy of a
SMFAttributeType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFAttribute that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, componentType, componentCount, componentSizeBits, componentSizeOctets, sizeOctets. |
SMFAttributeName |
name() |
static SMFAttribute |
of(SMFAttributeName name,
SMFComponentType componentType,
int componentCount,
int componentSizeBits)
Construct a new immutable
SMFAttribute instance. |
int |
sizeOctets() |
String |
toString()
Prints the immutable value
SMFAttribute with attribute values. |
SMFAttribute |
withComponentCount(int value)
Copy the current immutable object by setting a value for the
componentCount attribute. |
SMFAttribute |
withComponentSizeBits(int value)
Copy the current immutable object by setting a value for the
componentSizeBits attribute. |
SMFAttribute |
withComponentType(SMFComponentType value)
Copy the current immutable object by setting a value for the
componentType attribute. |
SMFAttribute |
withName(SMFAttributeName value)
Copy the current immutable object by setting a value for the
name attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic SMFAttributeName name()
name in interface SMFAttributeTypepublic SMFComponentType componentType()
componentType in interface SMFAttributeTypepublic int componentCount()
componentCount in interface SMFAttributeTypepublic int componentSizeBits()
componentSizeBits in interface SMFAttributeTypepublic int componentSizeOctets()
componentSizeOctets in interface SMFAttributeTypepublic int sizeOctets()
sizeOctets in interface SMFAttributeTypepublic final SMFAttribute withName(SMFAttributeName value)
name attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final SMFAttribute withComponentType(SMFComponentType value)
componentType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for componentTypethis objectpublic final SMFAttribute withComponentCount(int value)
componentCount attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for componentCountthis objectpublic final SMFAttribute withComponentSizeBits(int value)
componentSizeBits attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for componentSizeBitsthis objectpublic boolean equals(Object another)
SMFAttribute that have equal attribute values.public int hashCode()
name, componentType, componentCount, componentSizeBits, componentSizeOctets, sizeOctets.public String toString()
SMFAttribute with attribute values.public static SMFAttribute of(SMFAttributeName name, SMFComponentType componentType, int componentCount, int componentSizeBits)
SMFAttribute instance.name - The value for the name attributecomponentType - The value for the componentType attributecomponentCount - The value for the componentCount attributecomponentSizeBits - The value for the componentSizeBits attributepublic static SMFAttribute copyOf(SMFAttributeType instance)
SMFAttributeType 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 SMFAttribute.Builder builder()
SMFAttribute.Copyright © 2017 <code@io7m.com> http://io7m.com