Package org.opt4j.operators
Class AbstractGenericOperator.OperatorVoidPredicate
- java.lang.Object
-
- org.opt4j.operators.AbstractGenericOperator.OperatorVoidPredicate
-
- All Implemented Interfaces:
AbstractGenericOperator.OperatorPredicate
- Enclosing class:
- AbstractGenericOperator<O extends org.opt4j.core.optimizer.Operator<?>,Q extends org.opt4j.core.optimizer.Operator<?>>
public static class AbstractGenericOperator.OperatorVoidPredicate extends java.lang.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(org.opt4j.core.Genotype genotype)
Checks whether aGenotype
satisfies the predicate.java.lang.String
toString()
-
-
-
Method Detail
-
evaluate
public boolean evaluate(org.opt4j.core.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-