Package org.dnsge.powerschoolapi.stat
Interface DetailedCourseMapper
-
public interface DetailedCourseMapper
Interface that maps aCourse
to aDetailedCourse
. Provides a default implementation of mapping a list of Courses using themapFrom(Course)
method.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static DetailedCourseMapper
DEFAULT_LETTER_DAY_MAPPER
Default implementation of a DetailedCourseMapper for schools that use a F to A+ scale with academic, honors, and AP classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<DetailedCourse>
mapAll(java.util.List<Course> courses)
Maps a list of Courses to a list of DetailedCoursesDetailedCourse
mapFrom(Course course)
Maps a Course to a DetailedCourse
-
-
-
Field Detail
-
DEFAULT_LETTER_DAY_MAPPER
static final DetailedCourseMapper DEFAULT_LETTER_DAY_MAPPER
Default implementation of a DetailedCourseMapper for schools that use a F to A+ scale with academic, honors, and AP classes.
-
-
Method Detail
-
mapFrom
DetailedCourse mapFrom(Course course)
Maps a Course to a DetailedCourse- Parameters:
course
- Course object to map- Returns:
- new converted/mapped DetailedCourse
-
mapAll
default java.util.List<DetailedCourse> mapAll(java.util.List<Course> courses)
Maps a list of Courses to a list of DetailedCourses- Parameters:
courses
- list of Courses- Returns:
- list of DetailedCourses
-
-