@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ErrorCodeValidationSetting extends AbstractErrorCodeValidationSetting
AbstractErrorCodeValidationSetting
.
Use the builder to create immutable instances:
ErrorCodeValidationSetting.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ErrorCodeValidationSetting.Builder
Builds instances of type
ErrorCodeValidationSetting . |
Modifier and Type | Method and Description |
---|---|
static ErrorCodeValidationSetting.Builder |
builder()
Creates a builder for
ErrorCodeValidationSetting . |
static ErrorCodeValidationSetting |
copyOf(AbstractErrorCodeValidationSetting instance)
Creates an immutable copy of a
AbstractErrorCodeValidationSetting value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ErrorCodeValidationSetting that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
validSoftOvertime , validSoftOverdistance . |
String |
toString()
Prints the immutable value
ErrorCodeValidationSetting with attribute values. |
boolean |
validSoftOverdistance() |
boolean |
validSoftOvertime() |
ErrorCodeValidationSetting |
withValidSoftOverdistance(boolean value)
Copy the current immutable object by setting a value for the
validSoftOverdistance attribute. |
ErrorCodeValidationSetting |
withValidSoftOvertime(boolean value)
Copy the current immutable object by setting a value for the
validSoftOvertime attribute. |
isSoft, validate
public boolean validSoftOvertime()
validSoftOvertime
in class AbstractErrorCodeValidationSetting
validSoftOvertime
attributepublic boolean validSoftOverdistance()
validSoftOverdistance
in class AbstractErrorCodeValidationSetting
validSoftOverdistance
attributepublic final ErrorCodeValidationSetting withValidSoftOvertime(boolean value)
validSoftOvertime
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for validSoftOvertimethis
objectpublic final ErrorCodeValidationSetting withValidSoftOverdistance(boolean value)
validSoftOverdistance
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for validSoftOverdistancethis
objectpublic boolean equals(@Nullable Object another)
ErrorCodeValidationSetting
that have equal attribute values.public int hashCode()
validSoftOvertime
, validSoftOverdistance
.public String toString()
ErrorCodeValidationSetting
with attribute values.public static ErrorCodeValidationSetting copyOf(AbstractErrorCodeValidationSetting instance)
AbstractErrorCodeValidationSetting
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 ErrorCodeValidationSetting.Builder builder()
ErrorCodeValidationSetting
.
ErrorCodeValidationSetting.builder() .validSoftOvertime(boolean) // optionalvalidSoftOvertime
.validSoftOverdistance(boolean) // optionalvalidSoftOverdistance
.build();
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.