Record Class PositionRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.position.PositionRequestContext
- Record Components:
accountContext-AccountRequestContextpositionRef-OwnedPositionRef
public record PositionRequestContext(AccountRequestContext accountContext, OwnedPositionRef positionRef)
extends Record
Resolved position and its user-owned account hierarchy for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionRequestContext(AccountRequestContext accountContext, OwnedPositionRef positionRef) Creates an instance of aPositionRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountContextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepositionRefrecord component.final StringtoString()Returns a string representation of this record class.userRef()
-
Constructor Details
-
PositionRequestContext
Creates an instance of aPositionRequestContextrecord class.- Parameters:
accountContext- the value for theaccountContextrecord componentpositionRef- the value for thepositionRefrecord component
-
-
Method Details
-
userRef
- Returns:
AuthenticatedUserRef
-
accountRef
- Returns:
OwnedAccountRef
-
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). -
accountContext
Returns the value of theaccountContextrecord component.- Returns:
- the value of the
accountContextrecord component
-
positionRef
Returns the value of thepositionRefrecord component.- Returns:
- the value of the
positionRefrecord component
-