Package com.github.searls.jasmine.runner
Class ImmutableHtmlGeneratorConfiguration
- java.lang.Object
-
- com.github.searls.jasmine.runner.HtmlGeneratorConfiguration
-
- com.github.searls.jasmine.runner.ImmutableHtmlGeneratorConfiguration
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableHtmlGeneratorConfiguration extends HtmlGeneratorConfiguration
Immutable implementation ofHtmlGeneratorConfiguration.Use the builder to create immutable instances:
ImmutableHtmlGeneratorConfiguration.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableHtmlGeneratorConfiguration.BuilderBuilds instances of typeImmutableHtmlGeneratorConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableHtmlGeneratorConfiguration.Builderbuilder()Creates a builder forImmutableHtmlGeneratorConfiguration.static ImmutableHtmlGeneratorConfigurationcopyOf(HtmlGeneratorConfiguration instance)Creates an immutable copy of aHtmlGeneratorConfigurationvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableHtmlGeneratorConfigurationthat have equal attribute values.intgetAutoRefreshInterval()StringgetCustomRunnerConfiguration()ReporterTypegetReporterType()StringgetRunnerTemplate()ScriptResolvergetScriptResolver()StringgetSourceEncoding()SpecRunnerTemplategetSpecRunnerTemplate()inthashCode()Computes a hash code from attributes:sourceEncoding,reporterType,runnerTemplate,specRunnerTemplate,scriptResolver,customRunnerConfiguration,autoRefreshInterval.StringtoString()Prints the immutable valueHtmlGeneratorConfigurationwith attribute values.ImmutableHtmlGeneratorConfigurationwithAutoRefreshInterval(int value)Copy the current immutable object by setting a value for theautoRefreshIntervalattribute.ImmutableHtmlGeneratorConfigurationwithCustomRunnerConfiguration(String value)Copy the current immutable object by setting a value for thecustomRunnerConfigurationattribute.ImmutableHtmlGeneratorConfigurationwithReporterType(ReporterType value)Copy the current immutable object by setting a value for thereporterTypeattribute.ImmutableHtmlGeneratorConfigurationwithRunnerTemplate(String value)Copy the current immutable object by setting a value for therunnerTemplateattribute.ImmutableHtmlGeneratorConfigurationwithScriptResolver(ScriptResolver value)Copy the current immutable object by setting a value for thescriptResolverattribute.ImmutableHtmlGeneratorConfigurationwithSourceEncoding(String value)Copy the current immutable object by setting a value for thesourceEncodingattribute.ImmutableHtmlGeneratorConfigurationwithSpecRunnerTemplate(SpecRunnerTemplate value)Copy the current immutable object by setting a value for thespecRunnerTemplateattribute.-
Methods inherited from class com.github.searls.jasmine.runner.HtmlGeneratorConfiguration
isAutoRefresh
-
-
-
-
Method Detail
-
getSourceEncoding
public String getSourceEncoding()
- Specified by:
getSourceEncodingin classHtmlGeneratorConfiguration- Returns:
- The value of the
sourceEncodingattribute
-
getReporterType
public ReporterType getReporterType()
- Specified by:
getReporterTypein classHtmlGeneratorConfiguration- Returns:
- The value of the
reporterTypeattribute
-
getRunnerTemplate
public String getRunnerTemplate()
- Specified by:
getRunnerTemplatein classHtmlGeneratorConfiguration- Returns:
- The value of the
runnerTemplateattribute
-
getSpecRunnerTemplate
public SpecRunnerTemplate getSpecRunnerTemplate()
- Specified by:
getSpecRunnerTemplatein classHtmlGeneratorConfiguration- Returns:
- The value of the
specRunnerTemplateattribute
-
getScriptResolver
public ScriptResolver getScriptResolver()
- Specified by:
getScriptResolverin classHtmlGeneratorConfiguration- Returns:
- The value of the
scriptResolverattribute
-
getCustomRunnerConfiguration
public String getCustomRunnerConfiguration()
- Specified by:
getCustomRunnerConfigurationin classHtmlGeneratorConfiguration- Returns:
- The value of the
customRunnerConfigurationattribute
-
getAutoRefreshInterval
public int getAutoRefreshInterval()
- Specified by:
getAutoRefreshIntervalin classHtmlGeneratorConfiguration- Returns:
- The value of the
autoRefreshIntervalattribute
-
withSourceEncoding
public final ImmutableHtmlGeneratorConfiguration withSourceEncoding(String value)
Copy the current immutable object by setting a value for thesourceEncodingattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sourceEncoding- Returns:
- A modified copy of the
thisobject
-
withReporterType
public final ImmutableHtmlGeneratorConfiguration withReporterType(ReporterType value)
Copy the current immutable object by setting a value for thereporterTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reporterType- Returns:
- A modified copy of the
thisobject
-
withRunnerTemplate
public final ImmutableHtmlGeneratorConfiguration withRunnerTemplate(String value)
Copy the current immutable object by setting a value for therunnerTemplateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for runnerTemplate- Returns:
- A modified copy of the
thisobject
-
withSpecRunnerTemplate
public final ImmutableHtmlGeneratorConfiguration withSpecRunnerTemplate(SpecRunnerTemplate value)
Copy the current immutable object by setting a value for thespecRunnerTemplateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for specRunnerTemplate- Returns:
- A modified copy of the
thisobject
-
withScriptResolver
public final ImmutableHtmlGeneratorConfiguration withScriptResolver(ScriptResolver value)
Copy the current immutable object by setting a value for thescriptResolverattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scriptResolver- Returns:
- A modified copy of the
thisobject
-
withCustomRunnerConfiguration
public final ImmutableHtmlGeneratorConfiguration withCustomRunnerConfiguration(String value)
Copy the current immutable object by setting a value for thecustomRunnerConfigurationattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for customRunnerConfiguration- Returns:
- A modified copy of the
thisobject
-
withAutoRefreshInterval
public final ImmutableHtmlGeneratorConfiguration withAutoRefreshInterval(int value)
Copy the current immutable object by setting a value for theautoRefreshIntervalattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for autoRefreshInterval- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableHtmlGeneratorConfigurationthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:sourceEncoding,reporterType,runnerTemplate,specRunnerTemplate,scriptResolver,customRunnerConfiguration,autoRefreshInterval.
-
toString
public String toString()
Prints the immutable valueHtmlGeneratorConfigurationwith attribute values.
-
copyOf
public static ImmutableHtmlGeneratorConfiguration copyOf(HtmlGeneratorConfiguration instance)
Creates an immutable copy of aHtmlGeneratorConfigurationvalue. 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 HtmlGeneratorConfiguration instance
-
builder
public static ImmutableHtmlGeneratorConfiguration.Builder builder()
Creates a builder forImmutableHtmlGeneratorConfiguration.ImmutableHtmlGeneratorConfiguration.builder() .sourceEncoding(String) // requiredsourceEncoding.reporterType(com.github.searls.jasmine.runner.ReporterType) // requiredreporterType.runnerTemplate(String) // requiredrunnerTemplate.specRunnerTemplate(com.github.searls.jasmine.runner.SpecRunnerTemplate) // requiredspecRunnerTemplate.scriptResolver(com.github.searls.jasmine.io.scripts.ScriptResolver) // requiredscriptResolver.customRunnerConfiguration(String) // requiredcustomRunnerConfiguration.autoRefreshInterval(int) // requiredautoRefreshInterval.build();- Returns:
- A new ImmutableHtmlGeneratorConfiguration builder
-
-