CChangelogTextWriterConfigurationTypepublic final class CChangelogTextWriterConfiguration extends java.lang.Object implements CChangelogTextWriterConfigurationType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CChangelogTextWriterConfiguration.Builder |
Builds instances of type
CChangelogTextWriterConfiguration. |
| Modifier and Type | Method | Description |
|---|---|---|
static CChangelogTextWriterConfiguration.Builder |
builder() |
Creates a builder for
CChangelogTextWriterConfiguration. |
static CChangelogTextWriterConfiguration |
copyOf(CChangelogTextWriterConfigurationType instance) |
Creates an immutable copy of a
CChangelogTextWriterConfigurationType value. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
CChangelogTextWriterConfiguration that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
release, showDates. |
static CChangelogTextWriterConfiguration |
of(java.util.Optional<? extends CVersionType> release,
boolean showDates) |
Construct a new immutable
CChangelogTextWriterConfiguration instance. |
java.util.Optional<CVersionType> |
release() |
|
boolean |
showDates() |
|
java.lang.String |
toString() |
Prints the immutable value
CChangelogTextWriterConfiguration with attribute values. |
CChangelogTextWriterConfiguration |
withRelease(CVersionType value) |
Copy the current immutable object by setting a present value for the optional
release attribute. |
CChangelogTextWriterConfiguration |
withRelease(java.util.Optional<? extends CVersionType> optional) |
Copy the current immutable object by setting an optional value for the
release attribute. |
CChangelogTextWriterConfiguration |
withShowDates(boolean value) |
Copy the current immutable object by setting a value for the
showDates attribute. |
public java.util.Optional<CVersionType> release()
release in interface CChangelogTextWriterConfigurationTypepublic boolean showDates()
showDates in interface CChangelogTextWriterConfigurationTypetrue iff dates should be shown in the outputpublic final CChangelogTextWriterConfiguration withRelease(CVersionType value)
release attribute.value - The value for releasethis objectpublic final CChangelogTextWriterConfiguration withRelease(java.util.Optional<? extends CVersionType> optional)
release attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for releasethis objectpublic final CChangelogTextWriterConfiguration withShowDates(boolean value)
showDates attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for showDatesthis objectpublic boolean equals(java.lang.Object another)
CChangelogTextWriterConfiguration that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
release, showDates.hashCode in class java.lang.Objectpublic java.lang.String toString()
CChangelogTextWriterConfiguration with attribute values.toString in class java.lang.Objectpublic static CChangelogTextWriterConfiguration of(java.util.Optional<? extends CVersionType> release, boolean showDates)
CChangelogTextWriterConfiguration instance.release - The value for the release attributeshowDates - The value for the showDates attributepublic static CChangelogTextWriterConfiguration copyOf(CChangelogTextWriterConfigurationType instance)
CChangelogTextWriterConfigurationType 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 CChangelogTextWriterConfiguration.Builder builder()
CChangelogTextWriterConfiguration.Copyright © 2017 <code@io7m.com> http://io7m.com