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 thecourseId
record component.Returns the value of thecourseName
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefinishDate
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisContinue
record component.Returns the value of theorganization
record component.Returns the value of thestartDate
record component.final String
toString()
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 aCourseDTO
record class.- Parameters:
courseId
- the value for thecourseId
record componentorganization
- the value for theorganization
record componentcourseName
- the value for thecourseName
record componentstartDate
- the value for thestartDate
record componentfinishDate
- the value for thefinishDate
record componentisContinue
- the value for theisContinue
record componentdescription
- the value for thedescription
record 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 thecourseId
record component.- Returns:
- the value of the
courseId
record component
-
organization
Returns the value of theorganization
record component.- Returns:
- the value of the
organization
record component
-
courseName
Returns the value of thecourseName
record component.- Returns:
- the value of the
courseName
record component
-
startDate
Returns the value of thestartDate
record component.- Returns:
- the value of the
startDate
record component
-
finishDate
Returns the value of thefinishDate
record component.- Returns:
- the value of the
finishDate
record component
-
isContinue
public boolean isContinue()Returns the value of theisContinue
record component.- Returns:
- the value of the
isContinue
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-