Package org.opt4j.operator
Class AbstractGenericOperator.OperatorClassPredicate
java.lang.Object
org.opt4j.operator.AbstractGenericOperator.OperatorClassPredicate
- All Implemented Interfaces:
AbstractGenericOperator.OperatorPredicate
- Enclosing class:
- AbstractGenericOperator<O extends Operator<?>,
Q extends Operator<?>>
public static class AbstractGenericOperator.OperatorClassPredicate
extends Object
implements AbstractGenericOperator.OperatorPredicate
The
AbstractGenericOperator.OperatorClassPredicate returns true for a given
specific class.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperatorClassPredicate(Class<? extends Genotype> clazz) Creates a newAbstractGenericOperator.OperatorClassPredicatefor the givenGenotypeclass. -
Method Summary
-
Field Details
-
clazz
-
-
Constructor Details
-
OperatorClassPredicate
Creates a newAbstractGenericOperator.OperatorClassPredicatefor the givenGenotypeclass.- Parameters:
clazz- the class of the genotype
-
-
Method Details
-
evaluate
Description copied from interface:AbstractGenericOperator.OperatorPredicateChecks whether aGenotypesatisfies the predicate.- Specified by:
evaluatein interfaceAbstractGenericOperator.OperatorPredicate- Parameters:
genotype- the genotype- Returns:
trueif the predicate is satisfied
-
getClazz
Returns the genotype class for the operator.- Returns:
- the genotype class
-
toString
-
hashCode
public int hashCode() -
equals
-