Package edu.ucsb.cs.scaffold.controller
Record Class UserStateController.UserStateRequest
java.lang.Object
java.lang.Record
edu.ucsb.cs.scaffold.controller.UserStateController.UserStateRequest
- Enclosing class:
UserStateController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncourseId()Returns the value of thecourseIdrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of thedetailCardsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themasteredSubconceptsrecord component.Returns the value of thestarredIdsrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of thetopLevelPositionsrecord component.final StringtoString()Returns a string representation of this record class.userid()Returns the value of theuseridrecord component.
-
Constructor Details
-
UserStateRequest
public UserStateRequest(Long userid, Long courseId, List<String> starredIds, com.fasterxml.jackson.databind.JsonNode detailCards, List<String> masteredSubconcepts, com.fasterxml.jackson.databind.JsonNode topLevelPositions) Creates an instance of aUserStateRequestrecord class.- Parameters:
userid- the value for theuseridrecord componentcourseId- the value for thecourseIdrecord componentstarredIds- the value for thestarredIdsrecord componentdetailCards- the value for thedetailCardsrecord componentmasteredSubconcepts- the value for themasteredSubconceptsrecord componenttopLevelPositions- the value for thetopLevelPositionsrecord 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). -
userid
Returns the value of theuseridrecord component.- Returns:
- the value of the
useridrecord component
-
courseId
Returns the value of thecourseIdrecord component.- Returns:
- the value of the
courseIdrecord component
-
starredIds
Returns the value of thestarredIdsrecord component.- Returns:
- the value of the
starredIdsrecord component
-
detailCards
public com.fasterxml.jackson.databind.JsonNode detailCards()Returns the value of thedetailCardsrecord component.- Returns:
- the value of the
detailCardsrecord component
-
masteredSubconcepts
Returns the value of themasteredSubconceptsrecord component.- Returns:
- the value of the
masteredSubconceptsrecord component
-
topLevelPositions
public com.fasterxml.jackson.databind.JsonNode topLevelPositions()Returns the value of thetopLevelPositionsrecord component.- Returns:
- the value of the
topLevelPositionsrecord component
-