示例#1
0
文件: Nav.java 项目: akraievoy/elw
    public static Student findStudent(
            final Group group,
            final String authId
    ) {
        for (Student student : group.getStudents().values()) {
            if (authId.equalsIgnoreCase(student.getEmail())) {
                return student;
            }
        }

        return null;
    }
示例#2
0
文件: Nav.java 项目: akraievoy/elw
 public static Version resolveVersion(
         final Task task,
         final IndexEntry indexEntry,
         final Group group,
         final String studentId
 ) {
     return resolveVersion(
             task,
             indexEntry.getVerAnchor(),
             indexEntry.getVerStep(),
             group.getStudents().keySet(),
             studentId
     );
 }