Record Class ImportedCourse
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.integration.model.ImportedCourse
- Record Components:
externalCourseId- the LMS-specific course identifiercode- the course code extracted from the feedname- the course name extracted from the feedsection- the course section extracted from the feedsemesterYear- the academic year extracted from the feedsemesterTerm- the academic term extracted from the feed
public record ImportedCourse(String externalCourseId, String code, String name, String section, Short semesterYear, Course.SemesterTerm semesterTerm)
extends Record
Course data imported from an external LMS feed before persistence.
-
Constructor Summary
ConstructorsConstructorDescriptionImportedCourse(String externalCourseId, String code, String name, String section, Short semesterYear, Course.SemesterTerm semesterTerm) Creates an instance of aImportedCourserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalCourseIdrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.section()Returns the value of thesectionrecord component.Returns the value of thesemesterTermrecord component.Returns the value of thesemesterYearrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportedCourse
public ImportedCourse(String externalCourseId, String code, String name, String section, Short semesterYear, Course.SemesterTerm semesterTerm) Creates an instance of aImportedCourserecord class.- Parameters:
externalCourseId- the value for theexternalCourseIdrecord componentcode- the value for thecoderecord componentname- the value for thenamerecord componentsection- the value for thesectionrecord componentsemesterYear- the value for thesemesterYearrecord componentsemesterTerm- the value for thesemesterTermrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
externalCourseId
Returns the value of theexternalCourseIdrecord component.- Returns:
- the value of the
externalCourseIdrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
section
Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
semesterYear
Returns the value of thesemesterYearrecord component.- Returns:
- the value of the
semesterYearrecord component
-
semesterTerm
Returns the value of thesemesterTermrecord component.- Returns:
- the value of the
semesterTermrecord component
-