private double classifyInstance(Instance example) throws Exception {
  boolean passedAllTests=true;
  for (Enumeration<Test> e=new WekaEnumeration<Test>(m_RuleList); passedAllTests && e.hasMoreElements(); ) {
    Test test=e.nextElement();
    passedAllTests=test.passesTest(example);
  }
  if (passedAllTests) {
    return m_ClassValue;
  }
 else {
    return -1.0;
  }
}

private double classifyInstance ( Instance example ) throws Exception { boolean passedAllTests = true ; for ( Enumeration < Test > e = new WekaEnumeration < Test > ( m_RuleList ) ; passedAllTests && e . hasMoreElements ( ) ; ) { Test test = e . nextElement ( ) ; passedAllTests = test . passesTest ( example ) ; } if ( passedAllTests ) { return m_ClassValue ; } else { return - 1.0 ; } }
classifies the given example
