Class ImmutableMaxLenQualifier
java.lang.Object
com.iland.core.web.rest.response.vm.Qualifier
com.iland.core.web.rest.response.vm.MaxLenQualifier
com.iland.core.web.rest.response.vm.ImmutableMaxLenQualifier
@Generated(from="MaxLenQualifier",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableMaxLenQualifier
extends MaxLenQualifier
Immutable implementation of
MaxLenQualifier.
Use the builder to create immutable instances:
ImmutableMaxLenQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableMaxLenQualifier.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMaxLenQualifier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableMaxLenQualifier.static ImmutableMaxLenQualifiercopyOf(MaxLenQualifier instance) Creates an immutable copy of aMaxLenQualifiervalue.booleanThis instance is equal to all instances ofImmutableMaxLenQualifierthat have equal attribute values.inthashCode()Computes a hash code from attributes:value,type.static ImmutableMaxLenQualifierConstruct a new immutableMaxLenQualifierinstance.toString()Prints the immutable valueMaxLenQualifierwith attribute values.type()The qualifier type.value()The maximum length.final ImmutableMaxLenQualifierCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
The maximum length.- Specified by:
valuein classMaxLenQualifier
-
type
Description copied from class:QualifierThe qualifier type.- Overrides:
typein classMaxLenQualifier- Returns:
- The computed-at-construction value of the
typeattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableMaxLenQualifierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value,type. -
toString
Prints the immutable valueMaxLenQualifierwith attribute values. -
of
Construct a new immutableMaxLenQualifierinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable MaxLenQualifier instance
-
copyOf
Creates an immutable copy of aMaxLenQualifiervalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MaxLenQualifier instance
-
builder
Creates a builder forImmutableMaxLenQualifier.ImmutableMaxLenQualifier.builder() .value(String) // requiredvalue.build();- Returns:
- A new ImmutableMaxLenQualifier builder
-