Record Class PositionTransactionRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.position.PositionTransactionRequestContext
- Record Components:
positionContext-PositionRequestContextuid- requested position-transaction UIDpositionTransactionRef-OwnedPositionTransactionRef
public record PositionTransactionRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionTransactionRef positionTransactionRef)
extends Record
Resolved position transaction and its user-owned parent hierarchy for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionTransactionRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionTransactionRef positionTransactionRef) Creates an instance of aPositionTransactionRequestContextrecord 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 thepositionContextrecord component.Returns the value of thepositionTransactionRefrecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.userRef()
-
Constructor Details
-
PositionTransactionRequestContext
public PositionTransactionRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionTransactionRef positionTransactionRef) Creates an instance of aPositionTransactionRequestContextrecord class.- Parameters:
positionContext- the value for thepositionContextrecord componentuid- the value for theuidrecord componentpositionTransactionRef- the value for thepositionTransactionRefrecord component
-
-
Method Details
-
userRef
- Returns:
AuthenticatedUserRef
-
accountRef
- Returns:
OwnedAccountRef
-
positionRef
- Returns:
OwnedPositionRef
-
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). -
positionContext
Returns the value of thepositionContextrecord component.- Returns:
- the value of the
positionContextrecord component
-
uid
-
positionTransactionRef
Returns the value of thepositionTransactionRefrecord component.- Returns:
- the value of the
positionTransactionRefrecord component
-