CompletedDuringCriterion

public class CompletedDuringCriterion implements Criterion

This criterion is used to filter all enrollments that have been completed during given time range.

Constructors

CompletedDuringCriterion

public CompletedDuringCriterion(DateTime start, DateTime end)

Creates a CompletedDuringCriterion with the start attribute set to start, the end attribute to end.

Parameters:
  • start – the beginning of the time range
  • end – the ending of the time range

Methods

fetch

public List<Enrollment> fetch(AllEnrollments allEnrollments)

filter

public List<Enrollment> filter(List<Enrollment> enrollments)