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

  • Constructor Details

  • Method Details

    • equals

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

      private boolean equalTo(int synthetic, ImmutableUniformDistribution another)
    • hashCode

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableUniformDistribution copyOf(UniformDistribution instance)
      Creates an immutable copy of a UniformDistribution 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

      public static ImmutableUniformDistribution.Builder builder()
      Creates a builder for ImmutableUniformDistribution.
       ImmutableUniformDistribution.builder()
          .build();
       
      Returns:
      A new ImmutableUniformDistribution builder