Class ImmutableRiskKernelInBuilt

java.lang.Object
io.github.ai4ci.config.riskmodel.ImmutableRiskKernelInBuilt
All Implemented Interfaces:
RiskKernelConfiguration, RiskKernelInBuilt, Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRiskKernelInBuilt extends Object implements RiskKernelInBuilt
Immutable implementation of RiskKernelInBuilt.

Use the builder to create immutable instances: ImmutableRiskKernelInBuilt.builder().

See Also:
  • Method Details

    • getKernel

      public Kernels getKernel()
      Specified by:
      getKernel in interface RiskKernelInBuilt
      Returns:
      The value of the kernel attribute
    • withKernel

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableRiskKernelInBuilt 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: kernel.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableRiskKernelInBuilt copyOf(RiskKernelInBuilt instance)
      Creates an immutable copy of a RiskKernelInBuilt 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 RiskKernelInBuilt instance
    • toBuilder

      Creates a builder for ImmutableRiskKernelInBuilt.prefilled with attibute values of this instance to easily create modified copies.
      Returns:
      A new ImmutableRiskKernelInBuilt builder with attributes of this instance
    • builder

      public static ImmutableRiskKernelInBuilt.Builder builder()
      Creates a builder for ImmutableRiskKernelInBuilt.
       ImmutableRiskKernelInBuilt.builder()
          .setKernel(io.github.ai4ci.config.riskmodel.Kernels) // required kernel
          .build();
       
      Returns:
      A new ImmutableRiskKernelInBuilt builder