Record Class AccountDeletionRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.account.AccountDeletionRequestContext
- Record Components:
accountContext-AccountRequestContextportfolioNumber- reassignment portfolio number
public record AccountDeletionRequestContext(AccountRequestContext accountContext, long portfolioNumber)
extends Record
Resolved account and reassignment target for an account deletion request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountDeletionRequestContext(AccountRequestContext accountContext, long portfolioNumber) Creates an instance of aAccountDeletionRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountContextrecord component.Returns the reference identifying the resolved account.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theportfolioNumberrecord component.final StringtoString()Returns a string representation of this record class.userRef()Returns the reference identifying the authenticated user.
-
Constructor Details
-
AccountDeletionRequestContext
Creates an instance of aAccountDeletionRequestContextrecord class.- Parameters:
accountContext- the value for theaccountContextrecord componentportfolioNumber- the value for theportfolioNumberrecord component
-
-
Method Details
-
userRef
Returns the reference identifying the authenticated user.- Returns:
AuthenticatedUserRef
-
accountRef
Returns the reference identifying the resolved account.- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accountContext
Returns the value of theaccountContextrecord component.- Returns:
- the value of the
accountContextrecord component
-
portfolioNumber
public long portfolioNumber()Returns the value of theportfolioNumberrecord component.- Returns:
- the value of the
portfolioNumberrecord component
-