Class ImmutableJasmineConfiguration


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableJasmineConfiguration
    extends JasmineConfiguration
    Immutable implementation of JasmineConfiguration.

    Use the builder to create immutable instances: ImmutableJasmineConfiguration.builder().

    • Method Detail

      • withBasedir

        public final ImmutableJasmineConfiguration withBasedir​(File value)
        Copy the current immutable object by setting a value for the basedir attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for basedir
        Returns:
        A modified copy of the this object
      • withJasmineTargetDir

        public final ImmutableJasmineConfiguration withJasmineTargetDir​(File value)
        Copy the current immutable object by setting a value for the jasmineTargetDir attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for jasmineTargetDir
        Returns:
        A modified copy of the this object
      • withSrcDirectoryName

        public final ImmutableJasmineConfiguration withSrcDirectoryName​(String value)
        Copy the current immutable object by setting a value for the srcDirectoryName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for srcDirectoryName
        Returns:
        A modified copy of the this object
      • withSpecDirectoryName

        public final ImmutableJasmineConfiguration withSpecDirectoryName​(String value)
        Copy the current immutable object by setting a value for the specDirectoryName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specDirectoryName
        Returns:
        A modified copy of the this object
      • withSources

        public final ImmutableJasmineConfiguration withSources​(ScriptSearch value)
        Copy the current immutable object by setting a value for the sources attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sources
        Returns:
        A modified copy of the this object
      • withSpecs

        public final ImmutableJasmineConfiguration withSpecs​(ScriptSearch value)
        Copy the current immutable object by setting a value for the specs attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specs
        Returns:
        A modified copy of the this object
      • withContexts

        public final ImmutableJasmineConfiguration withContexts​(Context... elements)
        Copy the current immutable object with elements that replace the content of contexts.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withContexts

        public final ImmutableJasmineConfiguration withContexts​(Iterable<? extends Context> elements)
        Copy the current immutable object with elements that replace the content of contexts. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of contexts elements to set
        Returns:
        A modified copy of this object
      • withPreloadSources

        public final ImmutableJasmineConfiguration withPreloadSources​(String... elements)
        Copy the current immutable object with elements that replace the content of preloadSources.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withPreloadSources

        public final ImmutableJasmineConfiguration withPreloadSources​(Iterable<String> elements)
        Copy the current immutable object with elements that replace the content of preloadSources. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of preloadSources elements to set
        Returns:
        A modified copy of this object
      • withSourceEncoding

        public final ImmutableJasmineConfiguration withSourceEncoding​(String value)
        Copy the current immutable object by setting a value for the sourceEncoding attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sourceEncoding
        Returns:
        A modified copy of the this object
      • withSpecRunnerTemplate

        public final ImmutableJasmineConfiguration withSpecRunnerTemplate​(SpecRunnerTemplate value)
        Copy the current immutable object by setting a value for the specRunnerTemplate attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specRunnerTemplate
        Returns:
        A modified copy of the this object
      • withCustomRunnerTemplate

        public final ImmutableJasmineConfiguration withCustomRunnerTemplate​(File value)
        Copy the current immutable object by setting a present value for the optional customRunnerTemplate attribute.
        Parameters:
        value - The value for customRunnerTemplate
        Returns:
        A modified copy of this object
      • withCustomRunnerTemplate

        public final ImmutableJasmineConfiguration withCustomRunnerTemplate​(Optional<? extends File> optional)
        Copy the current immutable object by setting an optional value for the customRunnerTemplate attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for customRunnerTemplate
        Returns:
        A modified copy of this object
      • withCustomRunnerConfiguration

        public final ImmutableJasmineConfiguration withCustomRunnerConfiguration​(File value)
        Copy the current immutable object by setting a present value for the optional customRunnerConfiguration attribute.
        Parameters:
        value - The value for customRunnerConfiguration
        Returns:
        A modified copy of this object
      • withCustomRunnerConfiguration

        public final ImmutableJasmineConfiguration withCustomRunnerConfiguration​(Optional<? extends File> optional)
        Copy the current immutable object by setting an optional value for the customRunnerConfiguration attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for customRunnerConfiguration
        Returns:
        A modified copy of this object
      • withSpecRunnerHtmlFileName

        public final ImmutableJasmineConfiguration withSpecRunnerHtmlFileName​(String value)
        Copy the current immutable object by setting a value for the specRunnerHtmlFileName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for specRunnerHtmlFileName
        Returns:
        A modified copy of the this object
      • withReporterType

        public final ImmutableJasmineConfiguration withReporterType​(ReporterType value)
        Copy the current immutable object by setting a value for the reporterType attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for reporterType
        Returns:
        A modified copy of the this object
      • withReporters

        public final ImmutableJasmineConfiguration withReporters​(Reporter... elements)
        Copy the current immutable object with elements that replace the content of reporters.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withReporters

        public final ImmutableJasmineConfiguration withReporters​(Iterable<? extends Reporter> elements)
        Copy the current immutable object with elements that replace the content of reporters. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of reporters elements to set
        Returns:
        A modified copy of this object
      • withFileSystemReporters

        public final ImmutableJasmineConfiguration withFileSystemReporters​(Iterable<? extends FileSystemReporter> elements)
        Copy the current immutable object with elements that replace the content of fileSystemReporters. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of fileSystemReporters elements to set
        Returns:
        A modified copy of this object
      • withAutoRefreshInterval

        public final ImmutableJasmineConfiguration withAutoRefreshInterval​(int value)
        Copy the current immutable object by setting a value for the autoRefreshInterval attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for autoRefreshInterval
        Returns:
        A modified copy of the this object
      • withProjectClassLoader

        public final ImmutableJasmineConfiguration withProjectClassLoader​(ClassLoader value)
        Copy the current immutable object by setting a value for the projectClassLoader attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for projectClassLoader
        Returns:
        A modified copy of the this object
      • withDebug

        public final ImmutableJasmineConfiguration withDebug​(boolean value)
        Copy the current immutable object by setting a value for the debug attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for debug
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableJasmineConfiguration that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: basedir, jasmineTargetDir, srcDirectoryName, specDirectoryName, sources, specs, contexts, preloadSources, sourceEncoding, specRunnerTemplate, customRunnerTemplate, customRunnerConfiguration, specRunnerHtmlFileName, reporterType, reporters, fileSystemReporters, autoRefreshInterval, projectClassLoader, debug.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value JasmineConfiguration with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableJasmineConfiguration copyOf​(JasmineConfiguration instance)
        Creates an immutable copy of a JasmineConfiguration value. 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 JasmineConfiguration instance