@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ScriptSearch"}) @Immutable @CheckReturnValue public final class ImmutableScriptSearch extends Object implements ScriptSearch
ScriptSearch.
Use the builder to create immutable instances:
ImmutableScriptSearch.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableScriptSearch.Builder
Builds instances of type
ImmutableScriptSearch. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScriptSearch.Builder |
builder()
Creates a builder for
ImmutableScriptSearch. |
static ImmutableScriptSearch |
copyOf(ScriptSearch instance)
Creates an immutable copy of a
ScriptSearch value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableScriptSearch that have equal attribute values. |
File |
getDirectory() |
com.google.common.collect.ImmutableList<String> |
getExcludes() |
com.google.common.collect.ImmutableList<String> |
getIncludes() |
int |
hashCode()
Computes a hash code from attributes:
directory, includes, excludes. |
String |
toString()
Prints the immutable value
ScriptSearch with attribute values. |
ImmutableScriptSearch |
withDirectory(File value)
Copy the current immutable object by setting a value for the
directory attribute. |
ImmutableScriptSearch |
withExcludes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
excludes. |
ImmutableScriptSearch |
withExcludes(String... elements)
Copy the current immutable object with elements that replace the content of
excludes. |
ImmutableScriptSearch |
withIncludes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
includes. |
ImmutableScriptSearch |
withIncludes(String... elements)
Copy the current immutable object with elements that replace the content of
includes. |
public File getDirectory()
getDirectory in interface ScriptSearchdirectory attributepublic com.google.common.collect.ImmutableList<String> getIncludes()
getIncludes in interface ScriptSearchincludes attributepublic com.google.common.collect.ImmutableList<String> getExcludes()
getExcludes in interface ScriptSearchexcludes attributepublic final ImmutableScriptSearch withDirectory(File value)
directory attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for directorythis objectpublic final ImmutableScriptSearch withIncludes(String... elements)
includes.elements - The elements to setthis objectpublic final ImmutableScriptSearch withIncludes(Iterable<String> elements)
includes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of includes elements to setthis objectpublic final ImmutableScriptSearch withExcludes(String... elements)
excludes.elements - The elements to setthis objectpublic final ImmutableScriptSearch withExcludes(Iterable<String> elements)
excludes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of excludes elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableScriptSearch that have equal attribute values.public int hashCode()
directory, includes, excludes.public String toString()
ScriptSearch with attribute values.public static ImmutableScriptSearch copyOf(ScriptSearch instance)
ScriptSearch value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableScriptSearch.Builder builder()
ImmutableScriptSearch.Copyright © 2010–2018 Justin Searls. All rights reserved.