Record Class Course
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Course
- Record Components:
Title- Course title. Can not be blankFrom- Start date of the course. It must be before the end dateTo- End date of the course. Should be set to a date before todayArea- Course subject. If set, it cannot be blankLocation- Location where the training took place. If set, no blanks allowedSummary- Brief description of the course. Blank values other than 'null' aren't allowedHours- Number of effective hours of this course. If set, should be greater than zero
-
Constructor Summary
ConstructorsConstructorDescriptionCourse(@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) Creates an instance of aCourserecord class. -
Method Summary
Modifier and TypeMethodDescriptionArea()Returns the value of theArearecord component.Company()Returns the value of theCompanyrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringFrom()Returns the value of theFromrecord component.final inthashCode()Returns a hash code value for this object.Hours()Returns the value of theHoursrecord component.@NotNull OrganizationReturns the value of theInstitutionrecord component.Location()Returns the value of theLocationrecord component.Score()Returns the value of theScorerecord component.Subjects()Returns the value of theSubjectsrecord component.Summary()Returns the value of theSummaryrecord component.@NotNull StringTitle()Returns the value of theTitlerecord component.@NotNull StringTo()Returns the value of theTorecord component.final StringtoString()Returns a string representation of this record class.Website()Returns the value of theWebsiterecord component.
-
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 aCourserecord class.- Parameters:
Title- the value for theTitlerecord componentInstitution- the value for theInstitutionrecord componentFrom- the value for theFromrecord componentTo- the value for theTorecord componentWebsite- the value for theWebsiterecord componentArea- the value for theArearecord componentLocation- the value for theLocationrecord componentSummary- the value for theSummaryrecord componentCompany- the value for theCompanyrecord componentHours- the value for theHoursrecord componentScore- the value for theScorerecord componentSubjects- the value for theSubjectsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
Title
-
Institution
Returns the value of theInstitutionrecord component.- Returns:
- the value of the
Institutionrecord component
-
From
-
To
-
Website
Returns the value of theWebsiterecord component.- Returns:
- the value of the
Websiterecord component
-
Area
-
Location
-
Summary
-
Company
Returns the value of theCompanyrecord component.- Returns:
- the value of the
Companyrecord component
-
Hours
-
Score
Returns the value of theScorerecord component.- Returns:
- the value of the
Scorerecord component
-
Subjects
-