

package logic;



public class MultModPredicate extends APredicate

{

 private int factor1;

 private int factor2;



 /**

  * @param factor1 

  * @param factor2 

  * @SBGen Constructor assigns factor1, factor2

  */

 public MultModPredicate(int factor1, int factor2)

 {

  // SBgen: Assign variables

  this.factor1 = factor1;

  this.factor2 = factor2;

  // SBgen: End assign

 }



 /**

  * @param dat 

  * @return 

  */

 public IBoolean isTrue(Object dat)

 {

  int x = (Integer) dat;

  return (BooleanFactory.Singleton.makeBoolean( ((x % factor1 == 0) || (x % factor2 == 0))));  

 }

}



