Class FormulaParser.Builder.Bops<T>

java.lang.Object
io.jenetics.ext.internal.util.FormulaParser.Builder.Bops<T>
Type Parameters:
T - the token type
Enclosing class:
FormulaParser.Builder<T>

public static final class FormulaParser.Builder.Bops<T> extends Object
Builder class for building binary operators with its precedence.
  • Method Details

    • add

      public FormulaParser.Builder.Bops<T> add(int precedence, Predicate<? super T> operators)
      Add a new operator predicate with its precedence.
      Parameters:
      precedence - the precedence of the operators
      operators - the operators predicate
      Returns:
      this builder, for method chaining
    • add

      @SafeVarargs public final FormulaParser.Builder.Bops<T> add(int precedence, T... operators)
      Add a new operator tokens with its precedence.
      Parameters:
      precedence - the precedence of the operators
      operators - the operators
      Returns:
      this builder, for method chaining