Package com.io7m.minisite.core
Class MinChangesConfiguration
java.lang.Object
com.io7m.minisite.core.MinChangesConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMinChangesConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMinChangesConfiguration.static MinChangesConfigurationcopyOf(MinChangesConfigurationType instance) Creates an immutable copy of aMinChangesConfigurationTypevalue.booleanThis instance is equal to all instances ofMinChangesConfigurationthat have equal attribute values.file()inthashCode()Computes a hash code from attributes:file,feedEmail.static MinChangesConfigurationConstruct a new immutableMinChangesConfigurationinstance.toString()Prints the immutable valueMinChangesConfigurationwith attribute values.final MinChangesConfigurationwithFeedEmail(String value) Copy the current immutable object by setting a value for thefeedEmailattribute.final MinChangesConfigurationCopy the current immutable object by setting a value for thefileattribute.
-
Method Details
-
file
- Specified by:
filein interfaceMinChangesConfigurationType- Returns:
- The changelog file
-
feedEmail
- Specified by:
feedEmailin interfaceMinChangesConfigurationType- Returns:
- The email used for the changelog atom feed
-
withFile
Copy the current immutable object by setting a value for thefileattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for file- Returns:
- A modified copy of the
thisobject
-
withFeedEmail
Copy the current immutable object by setting a value for thefeedEmailattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for feedEmail- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
of
Construct a new immutableMinChangesConfigurationinstance.- Parameters:
file- The value for thefileattributefeedEmail- The value for thefeedEmailattribute- Returns:
- An immutable MinChangesConfiguration instance
-
copyOf
Creates an immutable copy of aMinChangesConfigurationTypevalue. 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 MinChangesConfiguration instance
-
builder
Creates a builder forMinChangesConfiguration.MinChangesConfiguration.builder() .setFile(java.nio.file.Path) // requiredfile.setFeedEmail(String) // requiredfeedEmail.build();- Returns:
- A new MinChangesConfiguration builder
-