| Modifier and Type | Class | Description |
|---|---|---|
static class |
CItem.Builder |
Builds instances of type
CItem. |
| Modifier and Type | Method | Description |
|---|---|---|
static CItem.Builder |
builder() |
Creates a builder for
CItem. |
static CItem |
copyOf(CItemType instance) |
Creates an immutable copy of a
CItemType value. |
java.time.LocalDate |
date() |
|
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
CItem that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
date, summary, tickets, type. |
static CItem |
of(java.time.LocalDate date,
java.lang.String summary,
java.lang.Iterable<java.lang.String> tickets,
CChangeType type) |
Construct a new immutable
CItem instance. |
static CItem |
of(java.time.LocalDate date,
java.lang.String summary,
java.util.List<java.lang.String> tickets,
CChangeType type) |
Construct a new immutable
CItem instance. |
java.lang.String |
summary() |
|
java.util.List<java.lang.String> |
tickets() |
|
java.lang.String |
toString() |
Prints the immutable value
CItem with attribute values. |
CChangeType |
type() |
|
CItem |
withDate(java.time.LocalDate value) |
Copy the current immutable object by setting a value for the
date attribute. |
CItem |
withSummary(java.lang.String value) |
Copy the current immutable object by setting a value for the
summary attribute. |
CItem |
withTickets(java.lang.Iterable<java.lang.String> elements) |
Copy the current immutable object with elements that replace the content of
tickets. |
CItem |
withTickets(java.lang.String... elements) |
Copy the current immutable object with elements that replace the content of
tickets. |
CItem |
withType(CChangeType value) |
Copy the current immutable object by setting a value for the
type attribute. |
public java.time.LocalDate date()
public java.lang.String summary()
public java.util.List<java.lang.String> tickets()
public CChangeType type()
public final CItem withDate(java.time.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 CItem withSummary(java.lang.String value)
summary attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for summarythis objectpublic final CItem withTickets(java.lang.String... elements)
tickets.elements - The elements to setthis objectpublic final CItem withTickets(java.lang.Iterable<java.lang.String> elements)
tickets.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of tickets elements to setthis objectpublic final CItem withType(CChangeType value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(java.lang.Object another)
CItem that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
date, summary, tickets, type.hashCode in class java.lang.Objectpublic java.lang.String toString()
CItem with attribute values.toString in class java.lang.Objectpublic static CItem of(java.time.LocalDate date, java.lang.String summary, java.util.List<java.lang.String> tickets, CChangeType type)
CItem instance.date - The value for the date attributesummary - The value for the summary attributetickets - The value for the tickets attributetype - The value for the type attributepublic static CItem of(java.time.LocalDate date, java.lang.String summary, java.lang.Iterable<java.lang.String> tickets, CChangeType type)
CItem instance.date - The value for the date attributesummary - The value for the summary attributetickets - The value for the tickets attributetype - The value for the type attributepublic static CItem copyOf(CItemType instance)
CItemType 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 CItem.Builder builder()
CItem.Copyright © 2017 <code@io7m.com> http://io7m.com