Record Class ImportedAssignment
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.integration.model.ImportedAssignment
- Record Components:
externalId- the LMS-specific assignment identifierexternalCourseId- the LMS-specific course identifier this assignment belongs totitle- the assignment title extracted from the feeddescription- the assignment description extracted from the feeddueDate- the assignment due date extracted from the feeddueTime- the assignment due time extracted from the feed
public record ImportedAssignment(String externalId, String externalCourseId, String title, String description, LocalDate dueDate, LocalTime dueTime)
extends Record
Assignment data imported from an external LMS feed before persistence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.dueDate()Returns the value of thedueDaterecord component.dueTime()Returns the value of thedueTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalCourseIdrecord component.Returns the value of theexternalIdrecord component.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportedAssignment
public ImportedAssignment(String externalId, String externalCourseId, String title, String description, LocalDate dueDate, LocalTime dueTime) Creates an instance of aImportedAssignmentrecord class.- Parameters:
externalId- the value for theexternalIdrecord componentexternalCourseId- the value for theexternalCourseIdrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentdueDate- the value for thedueDaterecord componentdueTime- the value for thedueTimerecord 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). -
externalId
Returns the value of theexternalIdrecord component.- Returns:
- the value of the
externalIdrecord component
-
externalCourseId
Returns the value of theexternalCourseIdrecord component.- Returns:
- the value of the
externalCourseIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
dueDate
Returns the value of thedueDaterecord component.- Returns:
- the value of the
dueDaterecord component
-
dueTime
Returns the value of thedueTimerecord component.- Returns:
- the value of the
dueTimerecord component
-