Class ImmutableProportionalTournament.Builder<T extends Comparable<T>>

java.lang.Object
net.bmahe.genetics4j.core.spec.selection.ImmutableProportionalTournament.Builder<T>
Enclosing class:
ImmutableProportionalTournament<T extends Comparable<T>>

public static final class ImmutableProportionalTournament.Builder<T extends Comparable<T>> extends Object
Builds instances of type ProportionalTournament. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Field Details

    • INIT_BIT_NUM_CANDIDATES

      private static final long INIT_BIT_NUM_CANDIDATES
      See Also:
    • INIT_BIT_PROPORTION_FIRST

      private static final long INIT_BIT_PROPORTION_FIRST
      See Also:
    • INIT_BIT_FIRST_COMPARATOR

      private static final long INIT_BIT_FIRST_COMPARATOR
      See Also:
    • INIT_BIT_SECOND_COMPARATOR

      private static final long INIT_BIT_SECOND_COMPARATOR
      See Also:
    • initBits

      private long initBits
    • numCandidates

      private int numCandidates
    • proportionFirst

      private double proportionFirst
    • firstComparator

      private Comparator<Individual<T extends Comparable<T>>> firstComparator
    • secondComparator

      private Comparator<Individual<T extends Comparable<T>>> secondComparator
  • Constructor Details

    • Builder

      private Builder()
  • Method Details