Package edu.ucsb.cs.scaffold.controller
Record Class ConceptsController.SubConceptTableRowDTO
java.lang.Object
java.lang.Record
edu.ucsb.cs.scaffold.controller.ConceptsController.SubConceptTableRowDTO
- 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.parentId()Returns the value of theparentIdrecord component.Returns the value of theparentLabelrecord component.Returns the value of theparentLevelrecord component.parentX()Returns the value of theparentXrecord component.Returns the value of thesortOrderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubConceptTableRowDTO
public SubConceptTableRowDTO(Long id, String label, String description, String example, Long parentId, String parentLabel, Integer parentLevel, Integer parentX, Integer sortOrder) Creates an instance of aSubConceptTableRowDTOrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentexample- the value for theexamplerecord componentparentId- the value for theparentIdrecord componentparentLabel- the value for theparentLabelrecord componentparentLevel- the value for theparentLevelrecord componentparentX- the value for theparentXrecord componentsortOrder- the value for thesortOrderrecord 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
-
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
parentLabel
Returns the value of theparentLabelrecord component.- Returns:
- the value of the
parentLabelrecord component
-
parentLevel
Returns the value of theparentLevelrecord component.- Returns:
- the value of the
parentLevelrecord component
-
parentX
Returns the value of theparentXrecord component.- Returns:
- the value of the
parentXrecord component
-
sortOrder
Returns the value of thesortOrderrecord component.- Returns:
- the value of the
sortOrderrecord component
-