Record Class Achievement

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Achievement
Record Components:
Title - Descriptive title of the achievement. Cannot be blank
Date - Data in which the achievement was accomplished. Cannot be after today
Website - Link with further information of the achievement, I.e.: the URI of a publication
Summary - Detailed description of the achievement. It cannot be blank

public record Achievement(@NotNull Achievement.Type Type, @NotNull String Title, @NotNull String Date, String Website, String Summary, NullableOrganization Issuer) extends Record
Professional achievement. Achievement accomplished at a given date. Publications must be owned by external parties in order to be an achievement, posts on social networks or personal blogs are listed in other CV sections
  • Constructor Details

    • Achievement

      public Achievement(@NotNull @NotNull Achievement.Type Type, @NotNull @NotNull String Title, @NotNull @NotNull String Date, String Website, String Summary, NullableOrganization Issuer)
      Creates an instance of a Achievement record class.
      Parameters:
      Type - the value for the Type record component
      Title - the value for the Title record component
      Date - the value for the Date record component
      Website - the value for the Website record component
      Summary - the value for the Summary record component
      Issuer - the value for the Issuer 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.
    • Type

      @NotNull public @NotNull Achievement.Type Type()
      Returns the value of the Type record component.
      Returns:
      the value of the Type record component
    • Title

      @NotNull public @NotNull String Title()
      Returns the value of the Title record component.
      Returns:
      the value of the Title record component
    • Date

      @NotNull public @NotNull String Date()
      Returns the value of the Date record component.
      Returns:
      the value of the Date record component
    • Website

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

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

      public NullableOrganization Issuer()
      Returns the value of the Issuer record component.
      Returns:
      the value of the Issuer record component