Class AbstractGenericOperator.OperatorClassPredicate

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<? extends org.opt4j.core.Genotype> clazz  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      boolean evaluate​(org.opt4j.core.Genotype genotype)
      Checks whether a Genotype satisfies the predicate.
      java.lang.Class<? extends org.opt4j.core.Genotype> getClazz()
      Returns the genotype class for the operator.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • clazz

        protected final java.lang.Class<? extends org.opt4j.core.Genotype> clazz
    • Constructor Detail

      • OperatorClassPredicate

        public OperatorClassPredicate​(java.lang.Class<? extends org.opt4j.core.Genotype> clazz)
        Creates a new AbstractGenericOperator.OperatorClassPredicate for the given Genotype class.
        Parameters:
        clazz - the class of the genotype
    • Method Detail

      • getClazz

        public java.lang.Class<? extends org.opt4j.core.Genotype> getClazz()
        Returns the genotype class for the operator.
        Returns:
        the genotype class
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object