Record Class DegreeAndCourseHeading
java.lang.Object
java.lang.Record
page.codeberg.friedolyn.client.parser.DegreeAndCourseHeading
- Record Components:
degree
- The university degree that the course will lead to.course
- The human-readable title of the course.table
- The HTML table that contains the degree and course heading.
public record DegreeAndCourseHeading(@NonNull String degree, @NonNull String course, @NonNull org.jsoup.nodes.Element table)
extends Record
Represents an HTML table that contains both the 
course's title
and the
degree
that the course will lead to.

-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDegreeAndCourseHeading
(@NonNull String degree, @NonNull String course, @NonNull org.jsoup.nodes.Element table) Creates an instance of aDegreeAndCourseHeading
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
course()
Returns the value of thecourse
record component.@NonNull String
degree()
Returns the value of thedegree
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NonNull org.jsoup.nodes.Element
table()
Returns the value of thetable
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
degree
-
course
-
table
@NonNull private final @NonNull org.jsoup.nodes.Element tableThe field for thetable
record component.
-
-
Constructor Details
-
DegreeAndCourseHeading
-
-
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)
. -
degree
-
course
-
table
-