| Modifier and Type | Method and Description |
|---|---|
CItem.Builder |
addAllTickets(Iterable<String> elements)
Adds elements to
tickets list. |
CItem.Builder |
addTickets(String... elements)
Adds elements to
tickets list. |
CItem.Builder |
addTickets(String element)
Adds one element to
tickets list. |
CItem |
build()
Builds a new
CItem. |
CItem.Builder |
from(CItemType instance)
Fill a builder with attribute values from the provided
CItemType instance. |
CItem.Builder |
setDate(LocalDate date)
Initializes the value for the
date attribute. |
CItem.Builder |
setSummary(String summary)
Initializes the value for the
summary attribute. |
CItem.Builder |
setTickets(Iterable<String> elements)
Sets or replaces all elements for
tickets list. |
CItem.Builder |
setType(CChangeType type)
Initializes the value for the
type attribute. |
public final CItem.Builder from(CItemType instance)
CItemType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CItem.Builder setDate(LocalDate date)
date attribute.date - The value for datethis builder for use in a chained invocationpublic final CItem.Builder setSummary(String summary)
summary attribute.summary - The value for summarythis builder for use in a chained invocationpublic final CItem.Builder addTickets(String element)
tickets list.element - A tickets elementthis builder for use in a chained invocationpublic final CItem.Builder addTickets(String... elements)
tickets list.elements - An array of tickets elementsthis builder for use in a chained invocationpublic final CItem.Builder setTickets(Iterable<String> elements)
tickets list.elements - An iterable of tickets elementsthis builder for use in a chained invocationpublic final CItem.Builder addAllTickets(Iterable<String> elements)
tickets list.elements - An iterable of tickets elementsthis builder for use in a chained invocationpublic final CItem.Builder setType(CChangeType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic CItem build()
CItem.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com