final List<Registration> students = new ArrayList<Registration>(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { int studentNumberInt = registration.getNumber().intValue(); if (studentNumberInt >= fromNumberInt && studentNumberInt <= toNumberInt) { students.add(registration); } } return students;
final List<Registration> students = new ArrayList<Registration>(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { int studentNumberInt = registration.getNumber().intValue(); if (studentNumberInt >= fromNumberInt && studentNumberInt <= toNumberInt) { students.add(registration); }
	public static List<Registration> readAllStudentsBetweenNumbers(Integer fromNumber, Integer toNumber) {		int fromNumberInt = fromNumber.intValue();		int toNumberInt = toNumber.intValue();        final List<Registration> students = new ArrayList<Registration>();        for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) {            int studentNumberInt = registration.getNumber().intValue();			if (studentNumberInt >= fromNumberInt && studentNumberInt <= toNumberInt) {                students.add(registration);			}		}		return students;	}