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
-
Constructor Summary
ConstructorDescriptionOperatorClassPredicate
(Class<? extends Genotype> clazz) Creates a newAbstractGenericOperator.OperatorClassPredicate
for the givenGenotype
class. -
Method Summary
-
Field Details
-
clazz
-
-
Constructor Details
-
OperatorClassPredicate
Creates a newAbstractGenericOperator.OperatorClassPredicate
for the givenGenotype
class.- Parameters:
clazz
- the class of the genotype
-
-
Method Details
-
evaluate
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
-
getClazz
Returns the genotype class for the operator.- Returns:
- the genotype class
-
toString
-
hashCode
public int hashCode() -
equals
-