Record Class ExperienceDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.user_profile.ExperienceDTO
public record ExperienceDTO(UUID experienceId, String companyName, String description, String companyWebsiteLink, LocalDate startDate, LocalDate finishDate, boolean isContinue, String position)
extends Record
Data Transfer Object for an experience.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompanyName
record component.Returns the value of thecompanyWebsiteLink
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 theexperienceId
record component.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.position()
Returns the value of theposition
record component.Returns the value of thestartDate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExperienceDTO
public ExperienceDTO(UUID experienceId, String companyName, String description, String companyWebsiteLink, LocalDate startDate, LocalDate finishDate, boolean isContinue, String position) Creates an instance of aExperienceDTO
record class.- Parameters:
experienceId
- the value for theexperienceId
record componentcompanyName
- the value for thecompanyName
record componentdescription
- the value for thedescription
record componentcompanyWebsiteLink
- the value for thecompanyWebsiteLink
record componentstartDate
- the value for thestartDate
record componentfinishDate
- the value for thefinishDate
record componentisContinue
- the value for theisContinue
record componentposition
- the value for theposition
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 '=='. -
experienceId
Returns the value of theexperienceId
record component.- Returns:
- the value of the
experienceId
record component
-
companyName
Returns the value of thecompanyName
record component.- Returns:
- the value of the
companyName
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
companyWebsiteLink
Returns the value of thecompanyWebsiteLink
record component.- Returns:
- the value of the
companyWebsiteLink
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
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-