@Generated(value={"Immutables.generator","SMFSchemaVersionType"}) public final class SMFSchemaVersion extends Object implements SMFSchemaVersionType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFSchemaVersion.Builder
Builds instances of type
SMFSchemaVersion. |
| Modifier and Type | Method and Description |
|---|---|
static SMFSchemaVersion.Builder |
builder()
Creates a builder for
SMFSchemaVersion. |
static SMFSchemaVersion |
copyOf(SMFSchemaVersionType instance)
Creates an immutable copy of a
SMFSchemaVersionType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFSchemaVersion that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
major, minor. |
int |
major() |
int |
minor() |
static SMFSchemaVersion |
of(int major,
int minor)
Construct a new immutable
SMFSchemaVersion instance. |
String |
toString()
Prints the immutable value
SMFSchemaVersion with attribute values. |
SMFSchemaVersion |
withMajor(int value)
Copy the current immutable object by setting a value for the
major attribute. |
SMFSchemaVersion |
withMinor(int value)
Copy the current immutable object by setting a value for the
minor attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic int major()
major in interface SMFSchemaVersionTypepublic int minor()
minor in interface SMFSchemaVersionTypepublic final SMFSchemaVersion withMajor(int value)
major attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for majorthis objectpublic final SMFSchemaVersion withMinor(int value)
minor attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for minorthis objectpublic boolean equals(Object another)
SMFSchemaVersion that have equal attribute values.public int hashCode()
major, minor.public String toString()
SMFSchemaVersion with attribute values.public static SMFSchemaVersion of(int major, int minor)
SMFSchemaVersion instance.major - The value for the major attributeminor - The value for the minor attributepublic static SMFSchemaVersion copyOf(SMFSchemaVersionType instance)
SMFSchemaVersionType 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 SMFSchemaVersion.Builder builder()
SMFSchemaVersion.Copyright © 2017 <code@io7m.com> http://io7m.com