Module com.io7m.changelog.xml.api
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 Classes Modifier and Type Class Description static classCAtomChangelogWriterConfiguration.BuilderBuilds instances of typeCAtomChangelogWriterConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthorEmail()StringauthorName()static CAtomChangelogWriterConfiguration.Builderbuilder()Creates a builder forCAtomChangelogWriterConfiguration.static CAtomChangelogWriterConfigurationcopyOf(CAtomChangelogWriterConfigurationType instance)Creates an immutable copy of aCAtomChangelogWriterConfigurationTypevalue.booleanequals(Object another)This instance is equal to all instances ofCAtomChangelogWriterConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:updated,authorEmail,authorName,title,uri.static CAtomChangelogWriterConfigurationof(ZonedDateTime updated, String authorEmail, String authorName, String title, URI uri)Construct a new immutableCAtomChangelogWriterConfigurationinstance.Stringtitle()StringtoString()Prints the immutable valueCAtomChangelogWriterConfigurationwith attribute values.ZonedDateTimeupdated()URIuri()CAtomChangelogWriterConfigurationwithAuthorEmail(String value)Copy the current immutable object by setting a value for theauthorEmailattribute.CAtomChangelogWriterConfigurationwithAuthorName(String value)Copy the current immutable object by setting a value for theauthorNameattribute.CAtomChangelogWriterConfigurationwithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.CAtomChangelogWriterConfigurationwithUpdated(ZonedDateTime value)Copy the current immutable object by setting a value for theupdatedattribute.CAtomChangelogWriterConfigurationwithUri(URI value)Copy the current immutable object by setting a value for theuriattribute.
-
-
-
Method Detail
-
updated
public ZonedDateTime updated()
- Specified by:
updatedin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The updated time for the feed
-
authorEmail
public String authorEmail()
- Specified by:
authorEmailin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The email of the feed author
-
authorName
public String authorName()
- Specified by:
authorNamein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The name of the feed author
-
title
public String title()
- Specified by:
titlein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The feed title
-
uri
public URI uri()
- Specified by:
uriin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The URI of the feed
-
withUpdated
public final CAtomChangelogWriterConfiguration withUpdated(ZonedDateTime value)
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
public final CAtomChangelogWriterConfiguration withAuthorEmail(String value)
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
public final CAtomChangelogWriterConfiguration withAuthorName(String value)
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
public final CAtomChangelogWriterConfiguration withTitle(String value)
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
public final CAtomChangelogWriterConfiguration withUri(URI value)
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
public boolean equals(Object another)
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
public String 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
public static CAtomChangelogWriterConfiguration.Builder builder()
Creates a builder forCAtomChangelogWriterConfiguration.- Returns:
- A new CAtomChangelogWriterConfiguration builder
-
-