Record Class EducationDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.user_profile.EducationDTO
public record EducationDTO(UUID educationId, String schoolName, String department, String description, LocalDate startDate, LocalDate finishDate, boolean isContinue, double gpa)
extends Record
Data Transfer Object for an education.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepartment
record component.Returns the value of thedescription
record component.Returns the value of theeducationId
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefinishDate
record component.double
gpa()
Returns the value of thegpa
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 theschoolName
record component.Returns the value of thestartDate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EducationDTO
public EducationDTO(UUID educationId, String schoolName, String department, String description, LocalDate startDate, LocalDate finishDate, boolean isContinue, double gpa) Creates an instance of aEducationDTO
record class.- Parameters:
educationId
- the value for theeducationId
record componentschoolName
- the value for theschoolName
record componentdepartment
- the value for thedepartment
record componentdescription
- the value for thedescription
record componentstartDate
- the value for thestartDate
record componentfinishDate
- the value for thefinishDate
record componentisContinue
- the value for theisContinue
record componentgpa
- the value for thegpa
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 '=='. -
educationId
Returns the value of theeducationId
record component.- Returns:
- the value of the
educationId
record component
-
schoolName
Returns the value of theschoolName
record component.- Returns:
- the value of the
schoolName
record component
-
department
Returns the value of thedepartment
record component.- Returns:
- the value of the
department
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
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
-
gpa
public double gpa()Returns the value of thegpa
record component.- Returns:
- the value of the
gpa
record component
-