Module io.jenetics.base
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:
BigIntegerChromosome
,DoubleChromosome
,IntegerChromosome
,LongChromosome
public interface BoundedChromosome<A extends Comparable<? super A>,G extends BoundedGene<A,G>>
extends Chromosome<G>
Chromosome interface for
BoundedGene
s.- 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. AChromosome
must contains at least oneGene
.
-
Method Summary
Methods inherited from interface io.jenetics.util.BaseSeq
forEach, get, isEmpty, iterator, length, listIterator, nonEmpty, spliterator, stream
Methods inherited from interface io.jenetics.Chromosome
as, gene, isValid, newInstance
Methods inherited from interface io.jenetics.util.Factory
instances, newInstance
-
Method Details
-
min
Return the minimum value of thisBoundedChromosome
.- Returns:
- the minimum value of this
BoundedChromosome
.
-
max
Return the maximum value of thisBoundedChromosome
.- Returns:
- the maximum value of this
BoundedChromosome
.
-