Record Class PositionOrderRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.position.PositionOrderRequestContext
- Record Components:
positionContext-PositionRequestContextuid- requested position-order UIDpositionOrderRef-PositionOrder
public record PositionOrderRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionOrderRef positionOrderRef)
extends Record
Resolved position order and its user-owned parent hierarchy for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionOrderRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionOrderRef positionOrderRef) Creates an instance of aPositionOrderRequestContextrecord 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 thepositionOrderRefrecord component.final StringtoString()Returns a string representation of this record class.uid()Returns the value of theuidrecord component.userRef()
-
Constructor Details
-
PositionOrderRequestContext
public PositionOrderRequestContext(PositionRequestContext positionContext, String uid, OwnedPositionOrderRef positionOrderRef) Creates an instance of aPositionOrderRequestContextrecord class.- Parameters:
positionContext- the value for thepositionContextrecord componentuid- the value for theuidrecord componentpositionOrderRef- the value for thepositionOrderRefrecord 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
-
positionOrderRef
Returns the value of thepositionOrderRefrecord component.- Returns:
- the value of the
positionOrderRefrecord component
-