Package edu.ucsb.cs.scaffold.controller
Record Class ConceptsController.CourseConceptDTO
java.lang.Object
java.lang.Record
edu.ucsb.cs.scaffold.controller.ConceptsController.CourseConceptDTO
- Enclosing class:
ConceptsController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.example()Returns the value of theexamplerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.level()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
CourseConceptDTO
public CourseConceptDTO(Long id, String label, String description, String example, Integer level, Integer x, Integer y) Creates an instance of aCourseConceptDTOrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentexample- the value for theexamplerecord componentlevel- the value for thelevelrecord componentx- the value for thexrecord componenty- the value for theyrecord component
-
-
Method Details
-
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. -
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. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
example
Returns the value of theexamplerecord component.- Returns:
- the value of the
examplerecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-