CChangelogTypepublic final class CChangelog extends java.lang.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(java.lang.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(java.lang.String project,
java.lang.Iterable<? extends CRelease> releases,
java.util.Map<java.lang.String,? extends java.net.URI> ticketSystems) |
Construct a new immutable
CChangelog instance. |
static CChangelog |
of(java.lang.String project,
java.util.List<CRelease> releases,
java.util.Map<java.lang.String,java.net.URI> ticketSystems) |
Construct a new immutable
CChangelog instance. |
java.lang.String |
project() |
|
java.util.List<CRelease> |
releases() |
|
java.util.Map<java.lang.String,java.net.URI> |
ticketSystems() |
|
java.lang.String |
toString() |
Prints the immutable value
CChangelog with attribute values. |
CChangelog |
withProject(java.lang.String value) |
Copy the current immutable object by setting a value for the
project attribute. |
CChangelog |
withReleases(CRelease... elements) |
Copy the current immutable object with elements that replace the content of
releases. |
CChangelog |
withReleases(java.lang.Iterable<? extends CRelease> elements) |
Copy the current immutable object with elements that replace the content of
releases. |
CChangelog |
withTicketSystems(java.util.Map<java.lang.String,? extends java.net.URI> entries) |
Copy the current immutable object by replacing the
ticketSystems map with the specified map. |
public java.lang.String project()
project in interface CChangelogTypepublic java.util.List<CRelease> releases()
releases in interface CChangelogTypepublic java.util.Map<java.lang.String,java.net.URI> ticketSystems()
ticketSystems in interface CChangelogTypepublic final CChangelog withProject(java.lang.String value)
project attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for projectthis objectpublic final CChangelog withReleases(CRelease... elements)
releases.elements - The elements to setthis objectpublic final CChangelog withReleases(java.lang.Iterable<? extends CRelease> elements)
releases.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of releases elements to setthis objectpublic final CChangelog withTicketSystems(java.util.Map<java.lang.String,? extends java.net.URI> entries)
ticketSystems map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the ticketSystems mapthis objectpublic boolean equals(java.lang.Object another)
CChangelog that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
project, releases, ticketSystems.hashCode in class java.lang.Objectpublic java.lang.String toString()
CChangelog with attribute values.toString in class java.lang.Objectpublic static CChangelog of(java.lang.String project, java.util.List<CRelease> releases, java.util.Map<java.lang.String,java.net.URI> ticketSystems)
CChangelog instance.project - The value for the project attributereleases - The value for the releases attributeticketSystems - The value for the ticketSystems attributepublic static CChangelog of(java.lang.String project, java.lang.Iterable<? extends CRelease> releases, java.util.Map<java.lang.String,? extends java.net.URI> 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 © 2017 <code@io7m.com> http://io7m.com