Package io.meeds.mcp.server.tool.model
Record Class ExperienceModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.ExperienceModel
public record ExperienceModel(String experienceId, String company, String position, String skills, String startDate, String endDate, Boolean isCurrent, String description)
extends Record
A single work-experience entry of a user profile (rides
Profile.EXPERIENCES).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompany()Returns the value of thecompanyrecord component.Returns the value of thedescriptionrecord component.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperienceIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theisCurrentrecord component.position()Returns the value of thepositionrecord component.skills()Returns the value of theskillsrecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExperienceModel
public ExperienceModel(String experienceId, String company, String position, String skills, String startDate, String endDate, Boolean isCurrent, String description) Creates an instance of aExperienceModelrecord class.- Parameters:
experienceId- the value for theexperienceIdrecord componentcompany- the value for thecompanyrecord componentposition- the value for thepositionrecord componentskills- the value for theskillsrecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord componentisCurrent- the value for theisCurrentrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
experienceId
Returns the value of theexperienceIdrecord component.- Returns:
- the value of the
experienceIdrecord component
-
company
Returns the value of thecompanyrecord component.- Returns:
- the value of the
companyrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
skills
Returns the value of theskillsrecord component.- Returns:
- the value of the
skillsrecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-
isCurrent
Returns the value of theisCurrentrecord component.- Returns:
- the value of the
isCurrentrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-