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().

  • Method Details

    • validSoftOvertime

      public boolean validSoftOvertime()
      Overrides:
      validSoftOvertime in class AbstractErrorCodeValidationSetting
      Returns:
      The value of the validSoftOvertime attribute
    • validSoftOverdistance

      public boolean validSoftOverdistance()
      Overrides:
      validSoftOverdistance in class AbstractErrorCodeValidationSetting
      Returns:
      The value of the validSoftOverdistance attribute
    • withValidSoftOvertime

      public final ErrorCodeValidationSetting withValidSoftOvertime(boolean value)
      Copy the current immutable object by setting a value for the validSoftOvertime attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for validSoftOvertime
      Returns:
      A modified copy of the this object
    • withValidSoftOverdistance

      public final ErrorCodeValidationSetting withValidSoftOverdistance(boolean value)
      Copy the current immutable object by setting a value for the validSoftOverdistance attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for validSoftOverdistance
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ErrorCodeValidationSetting that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: validSoftOvertime, validSoftOverdistance.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ErrorCodeValidationSetting with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a AbstractErrorCodeValidationSetting 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

      public static ErrorCodeValidationSetting.Builder builder()
      Creates a builder for ErrorCodeValidationSetting.
       ErrorCodeValidationSetting.builder()
          .validSoftOvertime(boolean) // optional validSoftOvertime
          .validSoftOverdistance(boolean) // optional validSoftOverdistance
          .build();
       
      Returns:
      A new ErrorCodeValidationSetting builder