Interface Reproduce<T>

  • Type Parameters:
    T - the organism type
    All Known Implementing Classes:
    StringReproduce
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Reproduce<T>
    A function that allows for the creation of offspring using 2 parent organisms
    • Method Detail

      • reproduce

        T reproduce​(T a,
                    T b)