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 thedepartmentrecord component.Returns the value of thedescriptionrecord component.Returns the value of theeducationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinishDaterecord component.doublegpa()Returns the value of thegparecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisContinuerecord component.Returns the value of theschoolNamerecord component.Returns the value of thestartDaterecord component.final StringtoString()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 aEducationDTOrecord class.- Parameters:
 educationId- the value for theeducationIdrecord componentschoolName- the value for theschoolNamerecord componentdepartment- the value for thedepartmentrecord componentdescription- the value for thedescriptionrecord componentstartDate- the value for thestartDaterecord componentfinishDate- the value for thefinishDaterecord componentisContinue- the value for theisContinuerecord componentgpa- the value for thegparecord 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 theeducationIdrecord component.- Returns:
 - the value of the 
educationIdrecord component 
 - 
schoolName
Returns the value of theschoolNamerecord component.- Returns:
 - the value of the 
schoolNamerecord component 
 - 
department
Returns the value of thedepartmentrecord component.- Returns:
 - the value of the 
departmentrecord component 
 - 
description
Returns the value of thedescriptionrecord component.- Returns:
 - the value of the 
descriptionrecord 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 
 - 
gpa
public double gpa()Returns the value of thegparecord component.- Returns:
 - the value of the 
gparecord component 
 
 -