Package io.jenetics

Interface BoundedChromosome<A extends Comparable<? super A>,G extends BoundedGene<A,G>>

All Superinterfaces:
BaseSeq<G>, Chromosome<G>, Factory<Chromosome<G>>, Iterable<G>, RandomAccess, Verifiable
All Known Subinterfaces:
NumericChromosome<N,G>
All Known Implementing Classes:
DoubleChromosome, IntegerChromosome, LongChromosome

public interface BoundedChromosome<A extends Comparable<? super A>,G extends BoundedGene<A,G>> extends Chromosome<G>
Chromosome interface for BoundedGenes.
Since:
1.6
Version:
5.2
See Also:
Implementation Requirements:
Implementations of the BoundedChromosome interface must be immutable and guarantee efficient random access (O(1)) to the genes. A Chromosome must contains at least one Gene.
  • Method Details

    • min

      default A min()
      Return the minimum value of this BoundedChromosome.
      Returns:
      the minimum value of this BoundedChromosome.
    • max

      default A max()
      Return the maximum value of this BoundedChromosome.
      Returns:
      the maximum value of this BoundedChromosome.