public static final class CChange.Builder
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
CChange.Builder |
addAllTickets(java.lang.Iterable<java.lang.String> element) |
|
CChange.Builder |
addTickets(java.lang.String element) |
|
CChange |
build() |
Builds a new
CChange. |
CChange.Builder |
from(CChangeType instance) |
Fill a builder with attribute values from the provided
CChangeType instance. |
CChange.Builder |
setBackwardsCompatible(boolean backwardsCompatible) |
Initializes the value for the
backwardsCompatible attribute. |
CChange.Builder |
setDate(java.time.ZonedDateTime date) |
Initializes the value for the
date attribute. |
CChange.Builder |
setIterableTickets(java.lang.Iterable<java.lang.String> elements) |
|
CChange.Builder |
setModule(java.lang.String module) |
Initializes the optional value
module to module. |
CChange.Builder |
setModule(java.util.Optional<java.lang.String> module) |
Initializes the optional value
module to module. |
CChange.Builder |
setSummary(java.lang.String summary) |
Initializes the value for the
summary attribute. |
CChange.Builder |
setTickets(io.vavr.collection.List<java.lang.String> elements) |
public final CChange.Builder from(CChangeType instance)
CChangeType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CChange.Builder setDate(java.time.ZonedDateTime date)
date attribute.date - The value for datethis builder for use in a chained invocationpublic final CChange.Builder setSummary(java.lang.String summary)
summary attribute.summary - The value for summarythis builder for use in a chained invocationpublic CChange.Builder addTickets(java.lang.String element)
public CChange.Builder addAllTickets(java.lang.Iterable<java.lang.String> element)
public CChange.Builder setTickets(io.vavr.collection.List<java.lang.String> elements)
public CChange.Builder setIterableTickets(java.lang.Iterable<java.lang.String> elements)
public final CChange.Builder setModule(java.lang.String module)
module to module.module - The value for modulethis builder for chained invocationpublic final CChange.Builder setModule(java.util.Optional<java.lang.String> module)
module to module.module - The value for modulethis builder for use in a chained invocationpublic final CChange.Builder setBackwardsCompatible(boolean backwardsCompatible)
backwardsCompatible attribute.
If not set, this attribute will have a default value as returned by the initializer of backwardsCompatible.
backwardsCompatible - The value for backwardsCompatiblethis builder for use in a chained invocationCopyright © 2017 <code@io7m.com> http://io7m.com