optaplanner-examples/src/main/java/org/optaplanner/examples/taskassigning/domain/Task.java
public int getMissingSkillCount() {
        if (employee == null) {
            return 0;
        }
        int count = 0;
        for (Skill skill : taskType.getRequiredSkillList()) {
            if (!employee.getSkillSet().contains(skill)) {
                count++;
            }
        }
        return count;
    }
public int getMissingSkillCount() {
        if (employee == null) {
            return 0;
        }
        int count = 0;
        for (Skill skill : taskType.getRequiredSkillList()) {
            if (!employee.getSkillSet().contains(skill)) {
                count++;
            }
        }
        return count;
    }
public int getMissingSkillCount ( ) { if ( employee == null ) { return 0 ; } int count = 0 ; for ( Skill skill : taskType . getRequiredSkillList ( ) ) { if ( ! employee . getSkillSet ( ) . contains ( skill ) ) { count ++ ; } } return count ; }
************************************************************************
************************************************************************