Package io.github.ai4ci.config.riskmodel
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableRiskKernelInBuilt
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableRiskKernelInBuilt
.static ImmutableRiskKernelInBuilt
copyOf
(RiskKernelInBuilt instance) Creates an immutable copy of aRiskKernelInBuilt
value.boolean
This instance is equal to all instances ofImmutableRiskKernelInBuilt
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:kernel
.Creates a builder forImmutableRiskKernelInBuilt
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueRiskKernelInBuilt
with attribute values.withKernel
(Kernels value) Copy the current immutable object by setting a value for thekernel
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.config.riskmodel.RiskKernelInBuilt
kernel
-
Method Details
-
getKernel
- Specified by:
getKernel
in interfaceRiskKernelInBuilt
- Returns:
- The value of the
kernel
attribute
-
withKernel
Copy the current immutable object by setting a value for thekernel
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for kernel- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableRiskKernelInBuilt
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:kernel
. -
toString
Prints the immutable valueRiskKernelInBuilt
with attribute values. -
copyOf
Creates an immutable copy of aRiskKernelInBuilt
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 forImmutableRiskKernelInBuilt
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableRiskKernelInBuilt builder with attributes of
this
instance
-
builder
Creates a builder forImmutableRiskKernelInBuilt
.ImmutableRiskKernelInBuilt.builder() .setKernel(io.github.ai4ci.config.riskmodel.Kernels) // required
kernel
.build();- Returns:
- A new ImmutableRiskKernelInBuilt builder
-