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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeErrorCodeValidationSetting. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forErrorCodeValidationSetting.static ErrorCodeValidationSettingcopyOf(AbstractErrorCodeValidationSetting instance) Creates an immutable copy of aAbstractErrorCodeValidationSettingvalue.booleanThis instance is equal to all instances ofErrorCodeValidationSettingthat have equal attribute values.inthashCode()Computes a hash code from attributes:validSoftOvertime,validSoftOverdistance.toString()Prints the immutable valueErrorCodeValidationSettingwith attribute values.booleanbooleanwithValidSoftOverdistance(boolean value) Copy the current immutable object by setting a value for thevalidSoftOverdistanceattribute.withValidSoftOvertime(boolean value) Copy the current immutable object by setting a value for thevalidSoftOvertimeattribute.Methods inherited from class com.dna.jopt.framework.codedefinition.AbstractErrorCodeValidationSetting
isSoft, validate
-
Method Details
-
validSoftOvertime
public boolean validSoftOvertime()- Overrides:
validSoftOvertimein classAbstractErrorCodeValidationSetting- Returns:
- The value of the
validSoftOvertimeattribute
-
validSoftOverdistance
public boolean validSoftOverdistance()- Overrides:
validSoftOverdistancein classAbstractErrorCodeValidationSetting- Returns:
- The value of the
validSoftOverdistanceattribute
-
withValidSoftOvertime
Copy the current immutable object by setting a value for thevalidSoftOvertimeattribute. 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
thisobject
-
withValidSoftOverdistance
Copy the current immutable object by setting a value for thevalidSoftOverdistanceattribute. 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
thisobject
-
equals
This instance is equal to all instances ofErrorCodeValidationSettingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:validSoftOvertime,validSoftOverdistance. -
toString
Prints the immutable valueErrorCodeValidationSettingwith attribute values. -
copyOf
Creates an immutable copy of aAbstractErrorCodeValidationSettingvalue. 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) // optionalvalidSoftOvertime.validSoftOverdistance(boolean) // optionalvalidSoftOverdistance.build();- Returns:
- A new ErrorCodeValidationSetting builder
-