Record Class PortfolioRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.portfolio.PortfolioRequestContext
- Record Components:
userRef-AuthenticatedUserRefportfolioRef-OwnedPortfolioRef
public record PortfolioRequestContext(AuthenticatedUserRef userRef, OwnedPortfolioRef portfolioRef)
extends Record
Resolved user and user-owned portfolio for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPortfolioRequestContext(AuthenticatedUserRef userRef, OwnedPortfolioRef portfolioRef) Creates an instance of aPortfolioRequestContextrecord 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.Returns the value of theportfolioRefrecord component.final StringtoString()Returns a string representation of this record class.userRef()Returns the value of theuserRefrecord component.
-
Constructor Details
-
PortfolioRequestContext
Creates an instance of aPortfolioRequestContextrecord class.- Parameters:
userRef- the value for theuserRefrecord componentportfolioRef- the value for theportfolioRefrecord 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
-
portfolioRef
Returns the value of theportfolioRefrecord component.- Returns:
- the value of the
portfolioRefrecord component
-