Record Class CourseDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.user_profile.CourseDTO
public record CourseDTO(UUID courseId, String organization, String courseName, LocalDate startDate, LocalDate finishDate, boolean isContinue, String description)
extends Record
Data Transfer Object for a course.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncourseId()Returns the value of thecourseIdrecord component.Returns the value of thecourseNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinishDaterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisContinuerecord component.Returns the value of theorganizationrecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CourseDTO
public CourseDTO(UUID courseId, String organization, String courseName, LocalDate startDate, LocalDate finishDate, boolean isContinue, String description) Creates an instance of aCourseDTOrecord class.- Parameters:
courseId- the value for thecourseIdrecord componentorganization- the value for theorganizationrecord componentcourseName- the value for thecourseNamerecord componentstartDate- the value for thestartDaterecord componentfinishDate- the value for thefinishDaterecord componentisContinue- the value for theisContinuerecord componentdescription- the value for thedescriptionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
courseId
Returns the value of thecourseIdrecord component.- Returns:
- the value of the
courseIdrecord component
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-
courseName
Returns the value of thecourseNamerecord component.- Returns:
- the value of the
courseNamerecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
finishDate
Returns the value of thefinishDaterecord component.- Returns:
- the value of the
finishDaterecord component
-
isContinue
public boolean isContinue()Returns the value of theisContinuerecord component.- Returns:
- the value of the
isContinuerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-