@Generated(value={"Immutables.generator","CChangelogType"}) public final class CChangelog extends Object implements CChangelogType
| Modifier and Type | Class and Description |
|---|---|
static class |
CChangelog.Builder
Builds instances of type
CChangelog. |
| Modifier and Type | Method and 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(String project,
Iterable<? extends CRelease> releases,
Map<String,? extends URI> ticketSystems)
Construct a new immutable
CChangelog instance. |
static CChangelog |
of(String project,
List<CRelease> releases,
Map<String,URI> ticketSystems)
Construct a new immutable
CChangelog instance. |
String |
project() |
List<CRelease> |
releases() |
Map<String,URI> |
ticketSystems() |
String |
toString()
Prints the immutable value
CChangelog with attribute values. |
CChangelog |
withProject(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(Iterable<? extends CRelease> elements)
Copy the current immutable object with elements that replace the content of
releases. |
CChangelog |
withTicketSystems(Map<String,? extends URI> entries)
Copy the current immutable object by replacing the
ticketSystems map with the specified map. |
public String project()
project in interface CChangelogTypepublic List<CRelease> releases()
releases in interface CChangelogTypepublic Map<String,URI> ticketSystems()
ticketSystems in interface CChangelogTypepublic final CChangelog withProject(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(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(Map<String,? extends 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(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(String project, List<CRelease> releases, Map<String,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(String project, Iterable<? extends CRelease> releases, Map<String,? extends 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 © 2016 <code@io7m.com> http://io7m.com