Record Class Experience

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Experience
Record Components:
Position - Main role for which the person was hired at this professional experience. It can not be blank
Company - Permanent role company. If null, it means this is a contractor experience
From - Start date of the professional experience. It must be before the end date
To - End date of the professional experience. Should be set to a date before today
Location - Location where the profesional experience was done. If set, no blanks allowed
Summary - Brief description of the profesional experience. Blank values other than 'null' aren't allowed

public record Experience(@NotNull String Position, NullableOrganization Company, @Pattern(regexp="\\d{4}-\\d{2}") String From, @Pattern(regexp="\\d{4}-\\d{2}") String To, NullableLocation Location, String Summary, String quitReason, List<Project> Projects) extends Record
  • Constructor Details

    • Experience

      public Experience(@NotNull @NotNull String Position, NullableOrganization Company, @Pattern(regexp="\\d{4}-\\d{2}") @Pattern(regexp="\\d{4}-\\d{2}") String From, @Pattern(regexp="\\d{4}-\\d{2}") @Pattern(regexp="\\d{4}-\\d{2}") String To, NullableLocation Location, String Summary, String quitReason, List<Project> Projects)
      Creates an instance of a Experience record class.
      Parameters:
      Position - the value for the Position record component
      Company - the value for the Company record component
      From - the value for the From record component
      To - the value for the To record component
      Location - the value for the Location record component
      Summary - the value for the Summary record component
      quitReason - the value for the quitReason record component
      Projects - the value for the Projects record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • Position

      @NotNull public @NotNull String Position()
      Returns the value of the Position record component.
      Returns:
      the value of the Position record component
    • Company

      public NullableOrganization Company()
      Returns the value of the Company record component.
      Returns:
      the value of the Company record component
    • From

      @Pattern(regexp="\\d{4}-\\d{2}") public @Pattern(regexp="\\d{4}-\\d{2}") String From()
      Returns the value of the From record component.
      Returns:
      the value of the From record component
    • To

      @Pattern(regexp="\\d{4}-\\d{2}") public @Pattern(regexp="\\d{4}-\\d{2}") String To()
      Returns the value of the To record component.
      Returns:
      the value of the To record component
    • Location

      public NullableLocation Location()
      Returns the value of the Location record component.
      Returns:
      the value of the Location record component
    • Summary

      public String Summary()
      Returns the value of the Summary record component.
      Returns:
      the value of the Summary record component
    • quitReason

      public String quitReason()
      Returns the value of the quitReason record component.
      Returns:
      the value of the quitReason record component
    • Projects

      public List<Project> Projects()
      Returns the value of the Projects record component.
      Returns:
      the value of the Projects record component