CTicketIDTypepublic final class CTicketID extends Object implements CTicketIDType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CTicketID.Builder |
Builds instances of type
CTicketID. |
| Modifier and Type | Method | Description |
|---|---|---|
static CTicketID.Builder |
builder() |
Creates a builder for
CTicketID. |
static CTicketID |
copyOf(CTicketIDType instance) |
Creates an immutable copy of a
CTicketIDType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
CTicketID that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
value. |
static CTicketID |
of(String value) |
Construct a new immutable
CTicketID instance. |
String |
toString() |
Prints the immutable value
CTicketID with attribute values. |
String |
value() |
|
CTicketID |
withValue(String value) |
Copy the current immutable object by setting a value for the
value attribute. |
checkPreconditionspublic String value()
value in interface CTicketIDTypepublic final CTicketID withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(Object another)
CTicketID that have equal attribute values.public int hashCode()
value.public String toString()
CTicketID with attribute values.public static CTicketID of(String value)
CTicketID instance.value - The value for the value attributepublic static CTicketID copyOf(CTicketIDType instance)
CTicketIDType 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 CTicketID.Builder builder()
CTicketID.Copyright © 2018 <code@io7m.com> http://io7m.com