@Generated(value={"Immutables.generator","CReleaseType"}) public final class CRelease extends Object implements CReleaseType
| Modifier and Type | Class and Description |
|---|---|
static class |
CRelease.Builder
Builds instances of type
CRelease. |
| Modifier and Type | Method and Description |
|---|---|
static CRelease.Builder |
builder()
Creates a builder for
CRelease. |
static CRelease |
copyOf(CReleaseType instance)
Creates an immutable copy of a
CReleaseType value. |
LocalDate |
date() |
boolean |
equals(Object another)
This instance is equal to all instances of
CRelease that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
date, items, ticketSystemID, version. |
List<CItem> |
items() |
static CRelease |
of(LocalDate date,
Iterable<? extends CItem> items,
String ticketSystemID,
CVersionType version)
Construct a new immutable
CRelease instance. |
static CRelease |
of(LocalDate date,
List<CItem> items,
String ticketSystemID,
CVersionType version)
Construct a new immutable
CRelease instance. |
String |
ticketSystemID() |
String |
toString()
Prints the immutable value
CRelease with attribute values. |
CVersionType |
version() |
CRelease |
withDate(LocalDate value)
Copy the current immutable object by setting a value for the
date attribute. |
CRelease |
withItems(CItem... elements)
Copy the current immutable object with elements that replace the content of
items. |
CRelease |
withItems(Iterable<? extends CItem> elements)
Copy the current immutable object with elements that replace the content of
items. |
CRelease |
withTicketSystemID(String value)
Copy the current immutable object by setting a value for the
ticketSystemID attribute. |
CRelease |
withVersion(CVersionType value)
Copy the current immutable object by setting a value for the
version attribute. |
public LocalDate date()
date in interface CReleaseTypepublic List<CItem> items()
items in interface CReleaseTypepublic String ticketSystemID()
ticketSystemID in interface CReleaseTypepublic CVersionType version()
version in interface CReleaseTypepublic final CRelease withDate(LocalDate value)
date attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for datethis objectpublic final CRelease withItems(CItem... elements)
items.elements - The elements to setthis objectpublic final CRelease withItems(Iterable<? extends CItem> elements)
items.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of items elements to setthis objectpublic final CRelease withTicketSystemID(String value)
ticketSystemID attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for ticketSystemIDthis objectpublic final CRelease withVersion(CVersionType value)
version attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for versionthis objectpublic boolean equals(Object another)
CRelease that have equal attribute values.public int hashCode()
date, items, ticketSystemID, version.public String toString()
CRelease with attribute values.public static CRelease of(LocalDate date, List<CItem> items, String ticketSystemID, CVersionType version)
CRelease instance.date - The value for the date attributeitems - The value for the items attributeticketSystemID - The value for the ticketSystemID attributeversion - The value for the version attributepublic static CRelease of(LocalDate date, Iterable<? extends CItem> items, String ticketSystemID, CVersionType version)
CRelease instance.date - The value for the date attributeitems - The value for the items attributeticketSystemID - The value for the ticketSystemID attributeversion - The value for the version attributepublic static CRelease copyOf(CReleaseType instance)
CReleaseType 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 CRelease.Builder builder()
CRelease.Copyright © 2016 <code@io7m.com> http://io7m.com