CChangelogTypepublic final class CChangelog extends Object implements CChangelogType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CChangelog.Builder |
Builds instances of type
CChangelog. |
| Modifier and Type | Method | Description |
|---|---|---|
static CChangelog.Builder |
builder() |
Creates a builder for
CChangelog. |
static CChangelog |
copyOf(CChangelogType instance) |
Creates an immutable copy of a
CChangelogType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
CChangelog that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
project, releases, ticketSystems. |
static CChangelog |
of(CProjectName project,
io.vavr.collection.SortedMap<CVersionType,CRelease> releases,
io.vavr.collection.Map<String,CTicketSystem> ticketSystems) |
Construct a new immutable
CChangelog instance. |
CProjectName |
project() |
|
io.vavr.collection.SortedMap<CVersionType,CRelease> |
releases() |
|
io.vavr.collection.Map<String,CTicketSystem> |
ticketSystems() |
|
String |
toString() |
Prints the immutable value
CChangelog with attribute values. |
CChangelog |
withProject(CProjectName value) |
Copy the current immutable object by setting a value for the
project attribute. |
CChangelog |
withReleases(io.vavr.collection.SortedMap<CVersionType,CRelease> value) |
|
CChangelog |
withTicketSystems(io.vavr.collection.Map<String,CTicketSystem> value) |
checkPreconditionspublic CProjectName project()
project in interface CChangelogTypepublic io.vavr.collection.SortedMap<CVersionType,CRelease> releases()
releases in interface CChangelogTypepublic io.vavr.collection.Map<String,CTicketSystem> ticketSystems()
ticketSystems in interface CChangelogTypepublic final CChangelog withProject(CProjectName value)
project attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for projectthis objectpublic CChangelog withReleases(io.vavr.collection.SortedMap<CVersionType,CRelease> value)
public CChangelog withTicketSystems(io.vavr.collection.Map<String,CTicketSystem> value)
public boolean equals(Object another)
CChangelog that have equal attribute values.public int hashCode()
project, releases, ticketSystems.public String toString()
CChangelog with attribute values.public static CChangelog of(CProjectName project, io.vavr.collection.SortedMap<CVersionType,CRelease> releases, io.vavr.collection.Map<String,CTicketSystem> ticketSystems)
CChangelog instance.project - The value for the project attributereleases - The value for the releases attributeticketSystems - The value for the ticketSystems attributepublic static CChangelog copyOf(CChangelogType instance)
CChangelogType 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 CChangelog.Builder builder()
CChangelog.Copyright © 2018 <code@io7m.com> http://io7m.com