Class ErrorCodeValidationSetting
java.lang.Object
com.dna.jopt.framework.codedefinition.AbstractErrorCodeValidationSetting
com.dna.jopt.framework.codedefinition.ErrorCodeValidationSetting
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ErrorCodeValidationSetting
extends AbstractErrorCodeValidationSetting
Immutable implementation of
AbstractErrorCodeValidationSetting
.
Use the builder to create immutable instances:
ErrorCodeValidationSetting.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeErrorCodeValidationSetting
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forErrorCodeValidationSetting
.static ErrorCodeValidationSetting
copyOf
(AbstractErrorCodeValidationSetting instance) Creates an immutable copy of aAbstractErrorCodeValidationSetting
value.boolean
This instance is equal to all instances ofErrorCodeValidationSetting
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:validSoftOvertime
,validSoftOverdistance
.toString()
Prints the immutable valueErrorCodeValidationSetting
with attribute values.boolean
boolean
withValidSoftOverdistance
(boolean value) Copy the current immutable object by setting a value for thevalidSoftOverdistance
attribute.withValidSoftOvertime
(boolean value) Copy the current immutable object by setting a value for thevalidSoftOvertime
attribute.Methods inherited from class com.dna.jopt.framework.codedefinition.AbstractErrorCodeValidationSetting
isSoft, validate
-
Method Details
-
validSoftOvertime
public boolean validSoftOvertime()- Overrides:
validSoftOvertime
in classAbstractErrorCodeValidationSetting
- Returns:
- The value of the
validSoftOvertime
attribute
-
validSoftOverdistance
public boolean validSoftOverdistance()- Overrides:
validSoftOverdistance
in classAbstractErrorCodeValidationSetting
- Returns:
- The value of the
validSoftOverdistance
attribute
-
withValidSoftOvertime
Copy the current immutable object by setting a value for thevalidSoftOvertime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for validSoftOvertime- Returns:
- A modified copy of the
this
object
-
withValidSoftOverdistance
Copy the current immutable object by setting a value for thevalidSoftOverdistance
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for validSoftOverdistance- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofErrorCodeValidationSetting
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:validSoftOvertime
,validSoftOverdistance
. -
toString
Prints the immutable valueErrorCodeValidationSetting
with attribute values. -
copyOf
Creates an immutable copy of aAbstractErrorCodeValidationSetting
value. 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 ErrorCodeValidationSetting instance
-
builder
Creates a builder forErrorCodeValidationSetting
.ErrorCodeValidationSetting.builder() .validSoftOvertime(boolean) // optional
validSoftOvertime
.validSoftOverdistance(boolean) // optionalvalidSoftOverdistance
.build();- Returns:
- A new ErrorCodeValidationSetting builder
-