Record Class Course

java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Course
Record Components:
Title - Course title. Can not be blank
From - Start date of the course. It must be before the end date
To - End date of the course. Should be set to a date before today
Area - Course subject. If set, it cannot be blank
Location - Location where the training took place. If set, no blanks allowed
Summary - Brief description of the course. Blank values other than 'null' aren't allowed
Hours - Number of effective hours of this course. If set, should be greater than zero

public record Course(@NotNull String Title, @NotNull Organization Institution, @NotNull String From, @NotNull String To, String Website, String Area, NullableLocation Location, String Summary, String Company, Float Hours, String Score, Set<String> Subjects) extends Record
  • Constructor Details

    • Course

      public Course(@NotNull @NotNull String Title, @NotNull @NotNull Organization Institution, @NotNull @NotNull String From, @NotNull @NotNull String To, String Website, String Area, NullableLocation Location, String Summary, String Company, Float Hours, String Score, Set<String> Subjects)
      Creates an instance of a Course record class.
      Parameters:
      Title - the value for the Title record component
      Institution - the value for the Institution record component
      From - the value for the From record component
      To - the value for the To record component
      Website - the value for the Website record component
      Area - the value for the Area record component
      Location - the value for the Location record component
      Summary - the value for the Summary record component
      Company - the value for the Company record component
      Hours - the value for the Hours record component
      Score - the value for the Score record component
      Subjects - the value for the Subjects 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.
    • Title

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

      @NotNull public @NotNull Organization Institution()
      Returns the value of the Institution record component.
      Returns:
      the value of the Institution record component
    • From

      @NotNull public @NotNull String From()
      Returns the value of the From record component.
      Returns:
      the value of the From record component
    • To

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

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

      public String Area()
      Returns the value of the Area record component.
      Returns:
      the value of the Area 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
    • Company

      public String Company()
      Returns the value of the Company record component.
      Returns:
      the value of the Company record component
    • Hours

      public Float Hours()
      Returns the value of the Hours record component.
      Returns:
      the value of the Hours record component
    • Score

      public String Score()
      Returns the value of the Score record component.
      Returns:
      the value of the Score record component
    • Subjects

      public Set<String> Subjects()
      Returns the value of the Subjects record component.
      Returns:
      the value of the Subjects record component