/** * Get the next matching candidate. * * @return the next matching candidate */ private T getNextMatch() { while (candidateIter.hasNext()) { T candidate = candidateIter.next(); if (match(candidate)) { return candidate; } } return null; }
/** * Get the next matching candidate. * * @return the next matching candidate */ private T getNextMatch() { while (candidateIter.hasNext()) { T candidate = candidateIter.next(); if (match(candidate)) { return candidate; } } return null; }