@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableValueMapQualifier extends ValueMapQualifier
ValueMapQualifier.
Use the builder to create immutable instances:
ImmutableValueMapQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableValueMapQualifier.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableValueMapQualifier.Builder
Builds instances of type
ImmutableValueMapQualifier. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableValueMapQualifier.Builder |
builder()
Creates a builder for
ImmutableValueMapQualifier. |
static ImmutableValueMapQualifier |
copyOf(ValueMapQualifier instance)
Creates an immutable copy of a
ValueMapQualifier value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableValueMapQualifier that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
values, type. |
static ImmutableValueMapQualifier |
of(Iterable<String> values)
Construct a new immutable
ValueMapQualifier instance. |
static ImmutableValueMapQualifier |
of(List<String> values)
Construct a new immutable
ValueMapQualifier instance. |
String |
toString()
Prints the immutable value
ValueMapQualifier with attribute values. |
QualifierType |
type()
The qualifier type.
|
com.google.common.collect.ImmutableList<String> |
values()
The enumeration of valid options.
|
ImmutableValueMapQualifier |
withValues(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
values. |
ImmutableValueMapQualifier |
withValues(String... elements)
Copy the current immutable object with elements that replace the content of
values. |
public com.google.common.collect.ImmutableList<String> values()
values in class ValueMapQualifierpublic QualifierType type()
Qualifiertype in class ValueMapQualifiertype attributepublic final ImmutableValueMapQualifier withValues(String... elements)
values.elements - The elements to setthis objectpublic final ImmutableValueMapQualifier withValues(Iterable<String> elements)
values.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of values elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableValueMapQualifier that have equal attribute values.public int hashCode()
values, type.public String toString()
ValueMapQualifier with attribute values.public static ImmutableValueMapQualifier of(List<String> values)
ValueMapQualifier instance.values - The value for the values attributepublic static ImmutableValueMapQualifier of(Iterable<String> values)
ValueMapQualifier instance.values - The value for the values attributepublic static ImmutableValueMapQualifier copyOf(ValueMapQualifier instance)
ValueMapQualifier 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 ImmutableValueMapQualifier.Builder builder()
ImmutableValueMapQualifier.
ImmutableValueMapQualifier.builder()
.addValues|addAllValues(String) // values elements
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.