@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableToolInfo extends Object implements ToolInfo
ToolInfo.
Use the builder to create immutable instances:
ImmutableToolInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableToolInfo.Builder
Builds instances of type
ImmutableToolInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableToolInfo.Builder |
builder()
Creates a builder for
ImmutableToolInfo. |
static ImmutableToolInfo |
copyOf(ToolInfo instance)
Creates an immutable copy of a
ToolInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableToolInfo that have equal attribute values. |
Map<String,String> |
getEnvironmentVariables() |
List<String> |
getPathElements() |
int |
hashCode()
Computes a hash code from attributes:
environmentVariables, pathElements. |
String |
toString()
Prints the immutable value
ToolInfo with attribute values. |
ImmutableToolInfo |
withEnvironmentVariables(Map<String,? extends String> entries)
Copy the current immutable object by replacing the
environmentVariables map with the specified map. |
ImmutableToolInfo |
withPathElements(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
pathElements. |
ImmutableToolInfo |
withPathElements(String... elements)
Copy the current immutable object with elements that replace the content of
pathElements. |
public Map<String,String> getEnvironmentVariables()
getEnvironmentVariables in interface ToolInfoenvironmentVariables attributepublic List<String> getPathElements()
getPathElements in interface ToolInfopathElements attributepublic final ImmutableToolInfo withEnvironmentVariables(Map<String,? extends String> entries)
environmentVariables map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the environmentVariables mapthis objectpublic final ImmutableToolInfo withPathElements(String... elements)
pathElements.elements - The elements to setthis objectpublic final ImmutableToolInfo withPathElements(Iterable<String> elements)
pathElements.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of pathElements elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableToolInfo that have equal attribute values.public int hashCode()
environmentVariables, pathElements.public String toString()
ToolInfo with attribute values.public static ImmutableToolInfo copyOf(ToolInfo instance)
ToolInfo 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 ImmutableToolInfo.Builder builder()
ImmutableToolInfo.
ImmutableToolInfo.builder()
.putEnvironmentVariables|putAllEnvironmentVariables(String => String) // environmentVariables mappings
.addPathElements|addAllPathElements(String) // pathElements elements
.build();
Copyright © 2016–2021. All rights reserved.