Package com.io7m.minisite.core
Class MinBugTrackerConfiguration
java.lang.Object
com.io7m.minisite.core.MinBugTrackerConfiguration
- All Implemented Interfaces:
MinBugTrackerConfigurationType
public final class MinBugTrackerConfiguration
extends Object
implements MinBugTrackerConfigurationType
Configurations for bug trackers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMinBugTrackerConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMinBugTrackerConfiguration.static MinBugTrackerConfigurationcopyOf(MinBugTrackerConfigurationType instance) Creates an immutable copy of aMinBugTrackerConfigurationTypevalue.booleanThis instance is equal to all instances ofMinBugTrackerConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:system,uri.static MinBugTrackerConfigurationConstruct a new immutableMinBugTrackerConfigurationinstance.system()toString()Prints the immutable valueMinBugTrackerConfigurationwith attribute values.uri()withSystem(String value) Copy the current immutable object by setting a value for thesystemattribute.Copy the current immutable object by setting a value for theuriattribute.
-
Method Details
-
system
- Specified by:
systemin interfaceMinBugTrackerConfigurationType- Returns:
- The type of bug tracker
-
uri
- Specified by:
uriin interfaceMinBugTrackerConfigurationType- Returns:
- The bug tracker URL
-
withSystem
Copy the current immutable object by setting a value for thesystemattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for system- 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 ofMinBugTrackerConfigurationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:system,uri. -
toString
Prints the immutable valueMinBugTrackerConfigurationwith attribute values. -
of
Construct a new immutableMinBugTrackerConfigurationinstance.- Parameters:
system- The value for thesystemattributeuri- The value for theuriattribute- Returns:
- An immutable MinBugTrackerConfiguration instance
-
copyOf
Creates an immutable copy of aMinBugTrackerConfigurationTypevalue. 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 MinBugTrackerConfiguration instance
-
builder
Creates a builder forMinBugTrackerConfiguration.MinBugTrackerConfiguration.builder() .setSystem(String) // requiredsystem.setUri(java.net.URI) // requireduri.build();- Returns:
- A new MinBugTrackerConfiguration builder
-