@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableVariables extends Variables
Variables.
Use the builder to create immutable instances:
ImmutableVariables.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVariables.Builder
Builds instances of type
ImmutableVariables. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableVariables.Builder |
builder()
Creates a builder for
ImmutableVariables. |
static ImmutableVariables |
copyOf(Variables instance)
Creates an immutable copy of a
Variables value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVariables that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
list, nameHashMap, names. |
List<Variable> |
list() |
Map<String,Integer> |
nameHashMap() |
Set<String> |
names() |
String |
toString()
Prints the immutable value
Variables with attribute values. |
ImmutableVariables |
withList(Iterable<? extends Variable> elements)
Copy the current immutable object with elements that replace the content of
list. |
ImmutableVariables |
withList(Variable... elements)
Copy the current immutable object with elements that replace the content of
list. |
firstHashOf, hashOf, positionsOfpublic Map<String,Integer> nameHashMap()
nameHashMap in class VariablesnameHashMap attributepublic final ImmutableVariables withList(Variable... elements)
list.elements - The elements to setthis objectpublic final ImmutableVariables withList(Iterable<? extends Variable> elements)
list.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of list elements to setthis objectpublic boolean equals(Object another)
ImmutableVariables that have equal attribute values.public int hashCode()
list, nameHashMap, names.public String toString()
Variables with attribute values.public static ImmutableVariables copyOf(Variables instance)
Variables 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 ImmutableVariables.Builder builder()
ImmutableVariables.
ImmutableVariables.builder()
.addList|addAllList(de.flapdoodle.eval.core.tree.Variable) // list elements
.build();
Copyright © 2024. All rights reserved.