@Generated(value={"Modifiables.generator","SMFFormatVersionType"}) public final class SMFFormatVersionMutable extends Object implements SMFFormatVersionType
SMFFormatVersionType type.
Use the create() static factory methods to create new instances.
Use the toImmutable() method to convert to canonical immutable instances.
SMFFormatVersionMutable is not thread-safe
SMFFormatVersion| Modifier and Type | Method and Description |
|---|---|
SMFFormatVersionMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static SMFFormatVersionMutable |
create()
Construct a modifiable instance of
SMFFormatVersionType. |
static SMFFormatVersionMutable |
create(int major,
int minor)
Construct a modifiable instance of
SMFFormatVersionType. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFFormatVersionMutable that have equal attribute values. |
SMFFormatVersionMutable |
from(SMFFormatVersionType instance)
Fill this modifiable instance with attribute values from the provided
SMFFormatVersionType instance. |
int |
hashCode()
Computes a hash code from attributes:
major, minor. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
int |
major() |
boolean |
majorIsSet()
Returns
true if the required attribute major is set. |
int |
minor() |
boolean |
minorIsSet()
Returns
true if the required attribute minor is set. |
SMFFormatVersionMutable |
setMajor(int major)
Assigns a value to the
major attribute. |
SMFFormatVersionMutable |
setMinor(int minor)
Assigns a value to the
minor attribute. |
SMFFormatVersion |
toImmutable()
Converts to
SMFFormatVersion. |
String |
toString()
Generates a string representation of this
SMFFormatVersionType. |
SMFFormatVersionMutable |
unsetMajor()
Reset an attribute to its initial value.
|
SMFFormatVersionMutable |
unsetMinor()
Reset an attribute to its initial value.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, toHumanStringpublic static SMFFormatVersionMutable create(int major, int minor)
SMFFormatVersionType.public static SMFFormatVersionMutable create()
SMFFormatVersionType.public final int major()
major in interface SMFFormatVersionTypepublic final int minor()
minor in interface SMFFormatVersionTypepublic SMFFormatVersionMutable clear()
this for use in a chained invocationpublic SMFFormatVersionMutable from(SMFFormatVersionType instance)
SMFFormatVersionType instance.
Regular attribute values will be overridden, i.e. replaced with ones of an instance.
Any of the instance's absent optional values will not be copied (will not override current values).instance - The instance from which to copy valuesthis for use in a chained invocationpublic SMFFormatVersionMutable setMajor(int major)
major attribute.major - The value for majorthis for use in a chained invocationpublic SMFFormatVersionMutable setMinor(int minor)
minor attribute.minor - The value for minorthis for use in a chained invocationpublic final boolean majorIsSet()
true if the required attribute major is set.true if setpublic final boolean minorIsSet()
true if the required attribute minor is set.true if setpublic final SMFFormatVersionMutable unsetMajor()
this for use in a chained invocationpublic final SMFFormatVersionMutable unsetMinor()
this for use in a chained invocationpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final SMFFormatVersion toImmutable()
SMFFormatVersion.public boolean equals(Object another)
SMFFormatVersionMutable that have equal attribute values.
An uninitialized instance is equal only to itself.public int hashCode()
major, minor.Copyright © 2017 <code@io7m.com> http://io7m.com