Interface BoundedGeneCreator<A,G>

Type Parameters:
A - the allele type
G - the gene type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Functional interface for creating bounded genes.
Since:
3.9
Version:
3.9
  • Method Summary

    Modifier and Type
    Method
    Description
    create(A value, A min, A max)
    Create a new bounded gene from the given parameters.
  • Method Details

    • create

      G create(A value, A min, A max)
      Create a new bounded gene from the given parameters.
      final BoundedGeneCreator<Long, LongGene> creator = LongGene::of;
      
      Parameters:
      value - the gene value
      min - the minimum value
      max - the maximum value
      Returns:
      a newly created bounded gene