Package io.github.ai4ci.util
Class ImmutableFixedValueFunction
java.lang.Object
io.github.ai4ci.util.ImmutableFixedValueFunction
- All Implemented Interfaces:
Abstraction.SimpleFunction
,FixedValueFunction
,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFixedValueFunction
extends Object
implements FixedValueFunction
Immutable implementation of
FixedValueFunction
.
Use the builder to create immutable instances:
ImmutableFixedValueFunction.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableFixedValueFunction
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableFixedValueFunction
.static ImmutableFixedValueFunction
copyOf
(FixedValueFunction instance) Creates an immutable copy of aFixedValueFunction
value.boolean
This instance is equal to all instances ofImmutableFixedValueFunction
that have equal attribute values.double
getValue()
int
hashCode()
Computes a hash code from attributes:value
.Creates a builder forImmutableFixedValueFunction
.prefilled with attibute values ofthis
instance to easily create modified copies.toString()
Prints the immutable valueFixedValueFunction
with attribute values.withValue
(double value) Copy the current immutable object by setting a value for thevalue
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.util.FixedValueFunction
value
-
Method Details
-
getValue
public double getValue()- Specified by:
getValue
in interfaceFixedValueFunction
- Returns:
- The value of the
value
attribute
-
withValue
Copy the current immutable object by setting a value for thevalue
attribute. A value strict bits equality used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for value- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableFixedValueFunction
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value
. -
toString
Prints the immutable valueFixedValueFunction
with attribute values. -
copyOf
Creates an immutable copy of aFixedValueFunction
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 FixedValueFunction instance
-
toBuilder
Creates a builder forImmutableFixedValueFunction
.prefilled with attibute values ofthis
instance to easily create modified copies.- Returns:
- A new ImmutableFixedValueFunction builder with attributes of
this
instance
-
builder
Creates a builder forImmutableFixedValueFunction
.ImmutableFixedValueFunction.builder() .setValue(double) // required
value
.build();- Returns:
- A new ImmutableFixedValueFunction builder
-