Record Class ForumActionContext<SOURCE,CTX>
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.forum.actions.ForumActionContext<SOURCE,CTX>
-
Constructor Summary
ConstructorsConstructorDescriptionForumActionContext(ForumActionType itemType, String itemId, String topicId, SOURCE source, CTX context) Creates an instance of aForumActionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.itemId()Returns the value of theitemIdrecord component.itemType()Returns the value of theitemTyperecord component.source()Returns the value of thesourcerecord component.topicId()Returns the value of thetopicIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForumActionContext
public ForumActionContext(ForumActionType itemType, String itemId, String topicId, SOURCE source, CTX context) Creates an instance of aForumActionContextrecord class.- Parameters:
itemType- the value for theitemTyperecord componentitemId- the value for theitemIdrecord componenttopicId- the value for thetopicIdrecord componentsource- the value for thesourcerecord componentcontext- the value for thecontextrecord 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). -
itemType
Returns the value of theitemTyperecord component.- Returns:
- the value of the
itemTyperecord component
-
itemId
Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
topicId
Returns the value of thetopicIdrecord component.- Returns:
- the value of the
topicIdrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-