@Generated(value={"Immutables.generator","CItemType"}) public final class CItem extends Object implements CItemType
| Modifier and Type | Class and Description |
|---|---|
static class |
CItem.Builder
Builds instances of type
CItem. |
| Modifier and Type | Method and Description |
|---|---|
static CItem.Builder |
builder()
Creates a builder for
CItem. |
static CItem |
copyOf(CItemType instance)
Creates an immutable copy of a
CItemType value. |
LocalDate |
date() |
boolean |
equals(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(LocalDate date,
String summary,
Iterable<String> tickets,
CChangeType type)
Construct a new immutable
CItem instance. |
static CItem |
of(LocalDate date,
String summary,
List<String> tickets,
CChangeType type)
Construct a new immutable
CItem instance. |
String |
summary() |
List<String> |
tickets() |
String |
toString()
Prints the immutable value
CItem with attribute values. |
CChangeType |
type() |
CItem |
withDate(LocalDate value)
Copy the current immutable object by setting a value for the
date attribute. |
CItem |
withSummary(String value)
Copy the current immutable object by setting a value for the
summary attribute. |
CItem |
withTickets(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
tickets. |
CItem |
withTickets(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 String summary()
public CChangeType type()
public final CItem 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 CItem withSummary(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(String... elements)
tickets.elements - The elements to setthis objectpublic final CItem withTickets(Iterable<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 shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(Object another)
CItem that have equal attribute values.public int hashCode()
date, summary, tickets, type.public String toString()
CItem with attribute values.public static CItem of(LocalDate date, String summary, List<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(LocalDate date, String summary, Iterable<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