Class ImmutableUniformDistribution
java.lang.Object
net.bmahe.genetics4j.core.spec.statistics.distributions.UniformDistribution
net.bmahe.genetics4j.core.spec.statistics.distributions.ImmutableUniformDistribution
- All Implemented Interfaces:
Distribution
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableUniformDistribution
extends UniformDistribution
Immutable implementation of
UniformDistribution
.
Use the builder to create immutable instances:
ImmutableUniformDistribution.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableUniformDistribution
. -
Constructor Summary
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableUniformDistribution
.static ImmutableUniformDistribution
copyOf
(UniformDistribution instance) Creates an immutable copy of aUniformDistribution
value.boolean
This instance is equal to all instances ofImmutableUniformDistribution
that have equal attribute values.private boolean
equalTo
(int synthetic, ImmutableUniformDistribution another) int
hashCode()
Returns a constant hash code value.toString()
Prints the immutable valueUniformDistribution
.Methods inherited from class net.bmahe.genetics4j.core.spec.statistics.distributions.UniformDistribution
build
-
Constructor Details
-
ImmutableUniformDistribution
-
-
Method Details
-
equals
This instance is equal to all instances ofImmutableUniformDistribution
that have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueUniformDistribution
. -
copyOf
Creates an immutable copy of aUniformDistribution
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 UniformDistribution instance
-
builder
Creates a builder forImmutableUniformDistribution
.ImmutableUniformDistribution.builder() .build();
- Returns:
- A new ImmutableUniformDistribution builder
-