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