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 java.lang.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
Modifier and Type Method Description java.lang.StringauthorEmail()java.lang.StringauthorName()static CAtomChangelogWriterConfiguration.Builderbuilder()Creates a builder forCAtomChangelogWriterConfiguration.static CAtomChangelogWriterConfigurationcopyOf(CAtomChangelogWriterConfigurationType instance)Creates an immutable copy of aCAtomChangelogWriterConfigurationTypevalue.booleanequals(java.lang.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(java.time.ZonedDateTime updated, java.lang.String authorEmail, java.lang.String authorName, java.lang.String title, java.net.URI uri)Construct a new immutableCAtomChangelogWriterConfigurationinstance.java.lang.Stringtitle()java.lang.StringtoString()Prints the immutable valueCAtomChangelogWriterConfigurationwith attribute values.java.time.ZonedDateTimeupdated()java.net.URIuri()CAtomChangelogWriterConfigurationwithAuthorEmail(java.lang.String value)Copy the current immutable object by setting a value for theauthorEmailattribute.CAtomChangelogWriterConfigurationwithAuthorName(java.lang.String value)Copy the current immutable object by setting a value for theauthorNameattribute.CAtomChangelogWriterConfigurationwithTitle(java.lang.String value)Copy the current immutable object by setting a value for thetitleattribute.CAtomChangelogWriterConfigurationwithUpdated(java.time.ZonedDateTime value)Copy the current immutable object by setting a value for theupdatedattribute.CAtomChangelogWriterConfigurationwithUri(java.net.URI value)Copy the current immutable object by setting a value for theuriattribute.
-
Method Details
-
updated
public java.time.ZonedDateTime updated()- Specified by:
updatedin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The updated time for the feed
-
authorEmail
public java.lang.String authorEmail()- Specified by:
authorEmailin interfaceCAtomChangelogWriterConfigurationType- Returns:
- The email of the feed author
-
authorName
public java.lang.String authorName()- Specified by:
authorNamein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The name of the feed author
-
title
public java.lang.String title()- Specified by:
titlein interfaceCAtomChangelogWriterConfigurationType- Returns:
- The feed title
-
uri
public java.net.URI 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
public boolean equals(java.lang.Object another)This instance is equal to all instances ofCAtomChangelogWriterConfigurationthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:updated,authorEmail,authorName,title,uri.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueCAtomChangelogWriterConfigurationwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static CAtomChangelogWriterConfiguration of(java.time.ZonedDateTime updated, java.lang.String authorEmail, java.lang.String authorName, java.lang.String title, java.net.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
-