@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableMaxLenQualifier extends MaxLenQualifier
MaxLenQualifier.
Use the builder to create immutable instances:
ImmutableMaxLenQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableMaxLenQualifier.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMaxLenQualifier.Builder
Builds instances of type
ImmutableMaxLenQualifier. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMaxLenQualifier.Builder |
builder()
Creates a builder for
ImmutableMaxLenQualifier. |
static ImmutableMaxLenQualifier |
copyOf(MaxLenQualifier instance)
Creates an immutable copy of a
MaxLenQualifier value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMaxLenQualifier that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
value, type. |
static ImmutableMaxLenQualifier |
of(String value)
Construct a new immutable
MaxLenQualifier instance. |
String |
toString()
Prints the immutable value
MaxLenQualifier with attribute values. |
QualifierType |
type()
The qualifier type.
|
String |
value()
The maximum length.
|
ImmutableMaxLenQualifier |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
public String value()
value in class MaxLenQualifierpublic QualifierType type()
Qualifiertype in class MaxLenQualifiertype attributepublic final ImmutableMaxLenQualifier withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(@Nullable Object another)
ImmutableMaxLenQualifier that have equal attribute values.public int hashCode()
value, type.public String toString()
MaxLenQualifier with attribute values.public static ImmutableMaxLenQualifier of(String value)
MaxLenQualifier instance.value - The value for the value attributepublic static ImmutableMaxLenQualifier copyOf(MaxLenQualifier instance)
MaxLenQualifier 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 ImmutableMaxLenQualifier.Builder builder()
ImmutableMaxLenQualifier.
ImmutableMaxLenQualifier.builder()
.value(String) // required value
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.