Record Class WatchlistRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.watchlist.WatchlistRequestContext
- Record Components:
userRef-AuthenticatedUserRefwatchlistRef-OwnedWatchlistRef
public record WatchlistRequestContext(AuthenticatedUserRef userRef, OwnedWatchlistRef watchlistRef)
extends Record
Resolved user and user-owned watchlist for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionWatchlistRequestContext(AuthenticatedUserRef userRef, OwnedWatchlistRef watchlistRef) Creates an instance of aWatchlistRequestContextrecord 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 thewatchlistRefrecord component.
-
Constructor Details
-
WatchlistRequestContext
Creates an instance of aWatchlistRequestContextrecord class.- Parameters:
userRef- the value for theuserRefrecord componentwatchlistRef- the value for thewatchlistRefrecord 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
-
watchlistRef
Returns the value of thewatchlistRefrecord component.- Returns:
- the value of the
watchlistRefrecord component
-