Package com.io7m.minisite.core
Class MinBugTrackerConfiguration
java.lang.Object
com.io7m.minisite.core.MinBugTrackerConfiguration
- All Implemented Interfaces:
MinBugTrackerConfigurationType
public final class MinBugTrackerConfiguration extends java.lang.Object implements MinBugTrackerConfigurationType
Configurations for bug trackers.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMinBugTrackerConfiguration.BuilderBuilds instances of typeMinBugTrackerConfiguration. -
Method Summary
Modifier and Type Method Description static MinBugTrackerConfiguration.Builderbuilder()Creates a builder forMinBugTrackerConfiguration.static MinBugTrackerConfigurationcopyOf(MinBugTrackerConfigurationType instance)Creates an immutable copy of aMinBugTrackerConfigurationTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofMinBugTrackerConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:system,uri.static MinBugTrackerConfigurationof(java.lang.String system, java.net.URI uri)Construct a new immutableMinBugTrackerConfigurationinstance.java.lang.Stringsystem()java.lang.StringtoString()Prints the immutable valueMinBugTrackerConfigurationwith attribute values.java.net.URIuri()MinBugTrackerConfigurationwithSystem(java.lang.String value)Copy the current immutable object by setting a value for thesystemattribute.MinBugTrackerConfigurationwithUri(java.net.URI value)Copy the current immutable object by setting a value for theuriattribute.
-
Method Details
-
system
public java.lang.String system()- Specified by:
systemin interfaceMinBugTrackerConfigurationType- Returns:
- The type of bug tracker
-
uri
public java.net.URI 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
public boolean equals(java.lang.Object another)This instance is equal to all instances ofMinBugTrackerConfigurationthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:system,uri.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueMinBugTrackerConfigurationwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
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
-