Class ImmutableMinLenQualifier
java.lang.Object
com.iland.core.web.rest.response.vm.Qualifier
com.iland.core.web.rest.response.vm.MinLenQualifier
com.iland.core.web.rest.response.vm.ImmutableMinLenQualifier
@Generated(from="MinLenQualifier",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableMinLenQualifier
extends MinLenQualifier
Immutable implementation of
MinLenQualifier.
Use the builder to create immutable instances:
ImmutableMinLenQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableMinLenQualifier.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMinLenQualifier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableMinLenQualifier.static ImmutableMinLenQualifiercopyOf(MinLenQualifier instance) Creates an immutable copy of aMinLenQualifiervalue.booleanThis instance is equal to all instances ofImmutableMinLenQualifierthat have equal attribute values.inthashCode()Computes a hash code from attributes:value,type.static ImmutableMinLenQualifierConstruct a new immutableMinLenQualifierinstance.toString()Prints the immutable valueMinLenQualifierwith attribute values.type()The qualifier type.value()The minimum length.final ImmutableMinLenQualifierCopy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
The minimum length.- Specified by:
valuein classMinLenQualifier
-
type
Description copied from class:QualifierThe qualifier type.- Overrides:
typein classMinLenQualifier- 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 ofImmutableMinLenQualifierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value,type. -
toString
Prints the immutable valueMinLenQualifierwith attribute values. -
of
Construct a new immutableMinLenQualifierinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable MinLenQualifier instance
-
copyOf
Creates an immutable copy of aMinLenQualifiervalue. 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 MinLenQualifier instance
-
builder
Creates a builder forImmutableMinLenQualifier.ImmutableMinLenQualifier.builder() .value(String) // requiredvalue.build();- Returns:
- A new ImmutableMinLenQualifier builder
-