CTicketSystemTypepublic final class CTicketSystem extends java.lang.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(java.lang.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. |
java.lang.String |
id() |
|
boolean |
isDefault() |
|
static CTicketSystem |
of(java.lang.String id,
java.net.URI uri,
boolean isDefault) |
Construct a new immutable
CTicketSystem instance. |
java.lang.String |
toString() |
Prints the immutable value
CTicketSystem with attribute values. |
java.net.URI |
uri() |
|
CTicketSystem |
withDefault(boolean value) |
Copy the current immutable object by setting a value for the
default attribute. |
CTicketSystem |
withId(java.lang.String value) |
Copy the current immutable object by setting a value for the
id attribute. |
CTicketSystem |
withUri(java.net.URI value) |
Copy the current immutable object by setting a value for the
uri attribute. |
public java.lang.String id()
id in interface CTicketSystemTypepublic java.net.URI uri()
uri in interface CTicketSystemTypepublic boolean isDefault()
isDefault in interface CTicketSystemTypetrue if the ticket system is the current defaultpublic final CTicketSystem withId(java.lang.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(java.net.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(java.lang.Object another)
CTicketSystem that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
id, uri, isDefault.hashCode in class java.lang.Objectpublic java.lang.String toString()
CTicketSystem with attribute values.toString in class java.lang.Objectpublic static CTicketSystem of(java.lang.String id, java.net.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 © 2017 <code@io7m.com> http://io7m.com