@Generated(value={"Immutables.generator","CVersionTextType"}) public final class CVersionText extends Object implements CVersionTextType
The type of arbitrary lexicographically ordered version strings.
| Modifier and Type | Class and Description |
|---|---|
static class |
CVersionText.Builder
Builds instances of type
CVersionText. |
| Modifier and Type | Method and Description |
|---|---|
static CVersionText.Builder |
builder()
Creates a builder for
CVersionText. |
static CVersionText |
copyOf(CVersionTextType instance)
Creates an immutable copy of a
CVersionTextType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
CVersionText that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
text. |
static CVersionText |
of(String text)
Construct a new immutable
CVersionText instance. |
String |
text() |
String |
toString()
Prints the immutable value
CVersionText with attribute values. |
CVersionText |
withText(String value)
Copy the current immutable object by setting a value for the
text attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, toVersionString, versionAcceptpublic String text()
text in interface CVersionTextTypepublic final CVersionText withText(String value)
text attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for textthis objectpublic boolean equals(Object another)
CVersionText that have equal attribute values.public int hashCode()
text.public String toString()
CVersionText with attribute values.public static CVersionText of(String text)
CVersionText instance.text - The value for the text attributepublic static CVersionText copyOf(CVersionTextType instance)
CVersionTextType 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 CVersionText.Builder builder()
CVersionText.Copyright © 2016 <code@io7m.com> http://io7m.com