CReleaseTypepublic final class CRelease extends Object implements CReleaseType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CRelease.Builder |
Builds instances of type
CRelease. |
| Modifier and Type | Method | Description |
|---|---|---|
static CRelease.Builder |
builder() |
Creates a builder for
CRelease. |
io.vavr.collection.List<CChange> |
changes() |
|
static CRelease |
copyOf(CReleaseType instance) |
Creates an immutable copy of a
CReleaseType value. |
ZonedDateTime |
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, changes, ticketSystemID, version. |
static CRelease |
of(ZonedDateTime date,
io.vavr.collection.List<CChange> changes,
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 |
withChanges(io.vavr.collection.List<CChange> value) |
|
CRelease |
withDate(ZonedDateTime value) |
Copy the current immutable object by setting a value for the
date attribute. |
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 ZonedDateTime date()
date in interface CReleaseTypepublic io.vavr.collection.List<CChange> changes()
changes in interface CReleaseTypepublic String ticketSystemID()
ticketSystemID in interface CReleaseTypepublic CVersionType version()
version in interface CReleaseTypepublic final CRelease withDate(ZonedDateTime 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 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, changes, ticketSystemID, version.public String toString()
CRelease with attribute values.public static CRelease of(ZonedDateTime date, io.vavr.collection.List<CChange> changes, String ticketSystemID, CVersionType version)
CRelease instance.date - The value for the date attributechanges - The value for the changes 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 © 2018 <code@io7m.com> http://io7m.com