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