CVersionTextType, CVersionType, java.lang.Comparable<CVersionType>public final class CVersionText extends java.lang.Object implements CVersionTextType
The type of arbitrary lexicographically ordered version strings.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CVersionText.Builder |
Builds instances of type
CVersionText. |
| Modifier and Type | Method | 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(java.lang.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(java.lang.String text) |
Construct a new immutable
CVersionText instance. |
java.lang.String |
text() |
|
java.lang.String |
toString() |
Prints the immutable value
CVersionText with attribute values. |
CVersionText |
withText(java.lang.String value) |
Copy the current immutable object by setting a value for the
text attribute. |
compareTo, toVersionString, versionAcceptpublic java.lang.String text()
text in interface CVersionTextTypepublic final CVersionText withText(java.lang.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(java.lang.Object another)
CVersionText that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
text.hashCode in class java.lang.Objectpublic java.lang.String toString()
CVersionText with attribute values.toString in class java.lang.Objectpublic static CVersionText of(java.lang.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 © 2017 <code@io7m.com> http://io7m.com