@Generated(value={"Immutables.generator","SMFSchemaIdentifierType"}) public final class SMFSchemaIdentifier extends Object implements SMFSchemaIdentifierType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFSchemaIdentifier.Builder
Builds instances of type
SMFSchemaIdentifier. |
| Modifier and Type | Method and Description |
|---|---|
static SMFSchemaIdentifier.Builder |
builder()
Creates a builder for
SMFSchemaIdentifier. |
static SMFSchemaIdentifier |
copyOf(SMFSchemaIdentifierType instance)
Creates an immutable copy of a
SMFSchemaIdentifierType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFSchemaIdentifier that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, versionMajor, versionMinor. |
SMFSchemaName |
name() |
static SMFSchemaIdentifier |
of(SMFSchemaName name,
int versionMajor,
int versionMinor)
Construct a new immutable
SMFSchemaIdentifier instance. |
String |
toHumanString() |
String |
toString()
Prints the immutable value
SMFSchemaIdentifier with attribute values. |
int |
versionMajor() |
int |
versionMinor() |
SMFSchemaIdentifier |
withName(SMFSchemaName value)
Copy the current immutable object by setting a value for the
name attribute. |
SMFSchemaIdentifier |
withVersionMajor(int value)
Copy the current immutable object by setting a value for the
versionMajor attribute. |
SMFSchemaIdentifier |
withVersionMinor(int value)
Copy the current immutable object by setting a value for the
versionMinor attribute. |
public SMFSchemaName name()
name in interface SMFSchemaIdentifierTypepublic int versionMajor()
versionMajor in interface SMFSchemaIdentifierTypepublic int versionMinor()
versionMinor in interface SMFSchemaIdentifierTypepublic final SMFSchemaIdentifier withName(SMFSchemaName 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 SMFSchemaIdentifier withVersionMajor(int value)
versionMajor attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for versionMajorthis objectpublic final SMFSchemaIdentifier withVersionMinor(int value)
versionMinor attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for versionMinorthis objectpublic boolean equals(Object another)
SMFSchemaIdentifier that have equal attribute values.public int hashCode()
name, versionMajor, versionMinor.public String toString()
SMFSchemaIdentifier with attribute values.public String toHumanString()
Returns a lazily initialized value of the toHumanString attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
toHumanString in interface SMFSchemaIdentifierTypel.name attributepublic static SMFSchemaIdentifier of(SMFSchemaName name, int versionMajor, int versionMinor)
SMFSchemaIdentifier instance.name - The value for the name attributeversionMajor - The value for the versionMajor attributeversionMinor - The value for the versionMinor attributepublic static SMFSchemaIdentifier copyOf(SMFSchemaIdentifierType instance)
SMFSchemaIdentifierType 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 SMFSchemaIdentifier.Builder builder()
SMFSchemaIdentifier.Copyright © 2017 <code@io7m.com> http://io7m.com