Package org.opt4j.operator
Class AbstractGenericOperator.OperatorVoidPredicate
- java.lang.Object
-
- org.opt4j.operator.AbstractGenericOperator.OperatorVoidPredicate
-
- All Implemented Interfaces:
AbstractGenericOperator.OperatorPredicate
- Enclosing class:
- AbstractGenericOperator<O extends Operator<?>,Q extends Operator<?>>
public static class AbstractGenericOperator.OperatorVoidPredicate extends Object implements AbstractGenericOperator.OperatorPredicate
TheAbstractGenericOperator.OperatorVoidPredicate
interface is used as marker forOperator
s for which the predicate is not explicitly defined.
-
-
Constructor Summary
Constructors Constructor Description OperatorVoidPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Genotype genotype)
Checks whether aGenotype
satisfies the predicate.String
toString()
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Genotype genotype)
Description copied from interface:AbstractGenericOperator.OperatorPredicate
Checks whether aGenotype
satisfies the predicate.- Specified by:
evaluate
in interfaceAbstractGenericOperator.OperatorPredicate
- Parameters:
genotype
- the genotype- Returns:
true
if the predicate is satisfied
-
-