@Generated(value={"Immutables.generator","SMFSchemaAttributeType"}) public final class SMFSchemaAttribute extends Object implements SMFSchemaAttributeType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFSchemaAttribute.Builder
Builds instances of type
SMFSchemaAttribute. |
| Modifier and Type | Method and Description |
|---|---|
static SMFSchemaAttribute.Builder |
builder()
Creates a builder for
SMFSchemaAttribute. |
static SMFSchemaAttribute |
copyOf(SMFSchemaAttributeType instance)
Creates an immutable copy of a
SMFSchemaAttributeType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFSchemaAttribute that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, requiredComponentType, requiredComponentCount, requiredComponentSize. |
SMFAttributeName |
name() |
static SMFSchemaAttribute |
of(SMFAttributeName name,
Optional<SMFComponentType> requiredComponentType,
OptionalInt requiredComponentCount,
OptionalInt requiredComponentSize)
Construct a new immutable
SMFSchemaAttribute instance. |
OptionalInt |
requiredComponentCount() |
OptionalInt |
requiredComponentSize() |
Optional<SMFComponentType> |
requiredComponentType() |
String |
toString()
Prints the immutable value
SMFSchemaAttribute with attribute values. |
SMFSchemaAttribute |
withName(SMFAttributeName value)
Copy the current immutable object by setting a value for the
name attribute. |
SMFSchemaAttribute |
withRequiredComponentCount(int value)
Copy the current immutable object by setting a present value for the optional
requiredComponentCount attribute. |
SMFSchemaAttribute |
withRequiredComponentCount(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
requiredComponentCount attribute. |
SMFSchemaAttribute |
withRequiredComponentSize(int value)
Copy the current immutable object by setting a present value for the optional
requiredComponentSize attribute. |
SMFSchemaAttribute |
withRequiredComponentSize(OptionalInt optional)
Copy the current immutable object by setting an optional value for the
requiredComponentSize attribute. |
SMFSchemaAttribute |
withRequiredComponentType(Optional<? extends SMFComponentType> optional)
Copy the current immutable object by setting an optional value for the
requiredComponentType attribute. |
SMFSchemaAttribute |
withRequiredComponentType(SMFComponentType value)
Copy the current immutable object by setting a present value for the optional
requiredComponentType attribute. |
public SMFAttributeName name()
name in interface SMFSchemaAttributeTypepublic Optional<SMFComponentType> requiredComponentType()
requiredComponentType in interface SMFSchemaAttributeTypepublic OptionalInt requiredComponentCount()
requiredComponentCount in interface SMFSchemaAttributeTypepublic OptionalInt requiredComponentSize()
requiredComponentSize in interface SMFSchemaAttributeTypepublic final SMFSchemaAttribute 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 SMFSchemaAttribute withRequiredComponentType(SMFComponentType value)
requiredComponentType attribute.value - The value for requiredComponentTypethis objectpublic final SMFSchemaAttribute withRequiredComponentType(Optional<? extends SMFComponentType> optional)
requiredComponentType attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for requiredComponentTypethis objectpublic final SMFSchemaAttribute withRequiredComponentCount(int value)
requiredComponentCount attribute.value - The value for requiredComponentCountthis objectpublic final SMFSchemaAttribute withRequiredComponentCount(OptionalInt optional)
requiredComponentCount attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for requiredComponentCountthis objectpublic final SMFSchemaAttribute withRequiredComponentSize(int value)
requiredComponentSize attribute.value - The value for requiredComponentSizethis objectpublic final SMFSchemaAttribute withRequiredComponentSize(OptionalInt optional)
requiredComponentSize attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for requiredComponentSizethis objectpublic boolean equals(Object another)
SMFSchemaAttribute that have equal attribute values.public int hashCode()
name, requiredComponentType, requiredComponentCount, requiredComponentSize.public String toString()
SMFSchemaAttribute with attribute values.public static SMFSchemaAttribute of(SMFAttributeName name, Optional<SMFComponentType> requiredComponentType, OptionalInt requiredComponentCount, OptionalInt requiredComponentSize)
SMFSchemaAttribute instance.name - The value for the name attributerequiredComponentType - The value for the requiredComponentType attributerequiredComponentCount - The value for the requiredComponentCount attributerequiredComponentSize - The value for the requiredComponentSize attributepublic static SMFSchemaAttribute copyOf(SMFSchemaAttributeType instance)
SMFSchemaAttributeType 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 SMFSchemaAttribute.Builder builder()
SMFSchemaAttribute.Copyright © 2017 <code@io7m.com> http://io7m.com