CTicketSystemTypepublic final class CTicketSystem extends Object implements CTicketSystemType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CTicketSystem.Builder |
Builds instances of type
CTicketSystem. |
| Modifier and Type | Method | Description |
|---|---|---|
static CTicketSystem.Builder |
builder() |
Creates a builder for
CTicketSystem. |
static CTicketSystem |
copyOf(CTicketSystemType instance) |
Creates an immutable copy of a
CTicketSystemType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
CTicketSystem that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
id, uri, isDefault. |
String |
id() |
|
boolean |
isDefault() |
|
static CTicketSystem |
of(String id,
URI uri,
boolean isDefault) |
Construct a new immutable
CTicketSystem instance. |
String |
toString() |
Prints the immutable value
CTicketSystem with attribute values. |
URI |
uri() |
|
CTicketSystem |
withDefault(boolean value) |
Copy the current immutable object by setting a value for the
default attribute. |
CTicketSystem |
withId(String value) |
Copy the current immutable object by setting a value for the
id attribute. |
CTicketSystem |
withUri(URI value) |
Copy the current immutable object by setting a value for the
uri attribute. |
public String id()
id in interface CTicketSystemTypepublic URI uri()
uri in interface CTicketSystemTypepublic boolean isDefault()
isDefault in interface CTicketSystemTypetrue if the ticket system is the current defaultpublic final CTicketSystem withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final CTicketSystem withUri(URI value)
uri attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for urithis objectpublic final CTicketSystem withDefault(boolean value)
default attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isDefaultthis objectpublic boolean equals(Object another)
CTicketSystem that have equal attribute values.public int hashCode()
id, uri, isDefault.public String toString()
CTicketSystem with attribute values.public static CTicketSystem of(String id, URI uri, boolean isDefault)
CTicketSystem instance.id - The value for the id attributeuri - The value for the uri attributeisDefault - The value for the isDefault attributepublic static CTicketSystem copyOf(CTicketSystemType instance)
CTicketSystemType 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 CTicketSystem.Builder builder()
CTicketSystem.Copyright © 2018 <code@io7m.com> http://io7m.com