public static class AbstractGenericOperator.OperatorClassPredicate extends Object implements AbstractGenericOperator.OperatorPredicate
AbstractGenericOperator.OperatorClassPredicate returns true for a given
specific class.| Constructor and Description |
|---|
OperatorClassPredicate(Class<? extends Genotype> clazz)
Creates a new
AbstractGenericOperator.OperatorClassPredicate for the given
Genotype class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
evaluate(Genotype genotype)
Checks whether a
Genotype satisfies the predicate. |
Class<? extends Genotype> |
getClazz()
Returns the genotype class for the operator.
|
int |
hashCode() |
String |
toString() |
public OperatorClassPredicate(Class<? extends Genotype> clazz)
AbstractGenericOperator.OperatorClassPredicate for the given
Genotype class.clazz - the class of the genotypepublic boolean evaluate(Genotype genotype)
AbstractGenericOperator.OperatorPredicateGenotype satisfies the predicate.evaluate in interface AbstractGenericOperator.OperatorPredicategenotype - the genotypetrue if the predicate is satisfiedpublic Class<? extends Genotype> getClazz()