Record Class WatchlistItemRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.watchlist.WatchlistItemRequestContext
- Record Components:
userRef-AuthenticatedUserRefwatchlistItemRef-OwnedWatchlistItemRef
public record WatchlistItemRequestContext(AuthenticatedUserRef userRef, OwnedWatchlistItemRef watchlistItemRef)
extends Record
Resolved user and user-owned watchlist item for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionWatchlistItemRequestContext(AuthenticatedUserRef userRef, OwnedWatchlistItemRef watchlistItemRef) Creates an instance of aWatchlistItemRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.userRef()Returns the value of theuserRefrecord component.Returns the value of thewatchlistItemRefrecord component.
-
Constructor Details
-
WatchlistItemRequestContext
public WatchlistItemRequestContext(AuthenticatedUserRef userRef, OwnedWatchlistItemRef watchlistItemRef) Creates an instance of aWatchlistItemRequestContextrecord class.- Parameters:
userRef- the value for theuserRefrecord componentwatchlistItemRef- the value for thewatchlistItemRefrecord 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). -
userRef
-
watchlistItemRef
Returns the value of thewatchlistItemRefrecord component.- Returns:
- the value of the
watchlistItemRefrecord component
-