Package com.io7m.changelog.xml.api
Class CAtomChangelogWriterConfiguration
java.lang.Object
com.io7m.changelog.xml.api.CAtomChangelogWriterConfiguration
- All Implemented Interfaces:
CAtomChangelogWriterConfigurationType
public final class CAtomChangelogWriterConfiguration
extends Object
implements CAtomChangelogWriterConfigurationType
The type of configurations for Atom feed writers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeCAtomChangelogWriterConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forCAtomChangelogWriterConfiguration.copyOf(CAtomChangelogWriterConfigurationType instance) Creates an immutable copy of aCAtomChangelogWriterConfigurationTypevalue.booleanThis instance is equal to all instances ofCAtomChangelogWriterConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:updated,authorEmail,authorName,title,uri.Construct a new immutableCAtomChangelogWriterConfigurationinstance.title()toString()Prints the immutable valueCAtomChangelogWriterConfigurationwith attribute values.updated()uri()withAuthorEmail(String value) Copy the current immutable object by setting a value for theauthorEmailattribute.withAuthorName(String value) Copy the current immutable object by setting a value for theauthorNameattribute.Copy the current immutable object by setting a value for thetitleattribute.withUpdated(ZonedDateTime value) Copy the current immutable object by setting a value for theupdatedattribute.Copy the current immutable object by setting a value for theuriattribute.
-
Method Details
-
updated
- Specified by:
updatedin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The updated time for the feed
-
authorEmail
- Specified by:
authorEmailin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The email of the feed author
-
authorName
- Specified by:
authorNamein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The name of the feed author
-
title
- Specified by:
titlein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The feed title
-
uri
- Specified by:
uriin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The URI of the feed
-
withUpdated
Copy the current immutable object by setting a value for theupdatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updated- Returns:
- A modified copy of the
thisobject
-
withAuthorEmail
Copy the current immutable object by setting a value for theauthorEmailattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authorEmail- Returns:
- A modified copy of the
thisobject
-
withAuthorName
Copy the current immutable object by setting a value for theauthorNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authorName- Returns:
- A modified copy of the
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy of the
thisobject
-
withUri
Copy the current immutable object by setting a value for theuriattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uri- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofCAtomChangelogWriterConfigurationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:updated,authorEmail,authorName,title,uri. -
toString
Prints the immutable valueCAtomChangelogWriterConfigurationwith attribute values. -
of
public static CAtomChangelogWriterConfiguration of(ZonedDateTime updated, String authorEmail, String authorName, String title, URI uri) Construct a new immutableCAtomChangelogWriterConfigurationinstance.- Parameters:
updated- The value for theupdatedattributeauthorEmail- The value for theauthorEmailattributeauthorName- The value for theauthorNameattributetitle- The value for thetitleattributeuri- The value for theuriattribute- Returns:
- An immutable CAtomChangelogWriterConfiguration instance
-
copyOf
public static CAtomChangelogWriterConfiguration copyOf(CAtomChangelogWriterConfigurationType instance) Creates an immutable copy of aCAtomChangelogWriterConfigurationTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CAtomChangelogWriterConfiguration instance
-
builder
Creates a builder forCAtomChangelogWriterConfiguration.CAtomChangelogWriterConfiguration.builder() .setUpdated(java.time.ZonedDateTime) // requiredupdated.setAuthorEmail(String) // requiredauthorEmail.setAuthorName(String) // requiredauthorName.setTitle(String) // requiredtitle.setUri(java.net.URI) // requireduri.build();- Returns:
- A new CAtomChangelogWriterConfiguration builder
-