Record Class AccountPortfolioAssignmentDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountPortfolioAssignmentDTO
- Record Components:
accountNumber- account numberbroker- broker codeportfolioNumber- destination portfolio number
public record AccountPortfolioAssignmentDTO(@NotBlank @Size(max=75) String accountNumber, @NotBlank @Size(max=75) String broker, @Min(1L) @Max(9007199254740991L) long portfolioNumber)
extends Record
Identifies an account by its persisted natural key and its destination portfolio.
- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountPortfolioAssignmentDTO(@NotBlank @Size(max=75) String accountNumber, @NotBlank @Size(max=75) String broker, @Min(1L) @Max(9007199254740991L) long portfolioNumber) Creates an instance of aAccountPortfolioAssignmentDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank @Size(max=75) StringReturns the value of theaccountNumberrecord component.@NotBlank @Size(max=75) Stringbroker()Returns the value of thebrokerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Min(1L) @Max(9007199254740991L) longReturns the value of theportfolioNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountPortfolioAssignmentDTO
public AccountPortfolioAssignmentDTO(@NotBlank @Size(max=75) @NotBlank @Size(max=75) String accountNumber, @NotBlank @Size(max=75) @NotBlank @Size(max=75) String broker, @Min(1L) @Max(9007199254740991L) @Min(1L) @Max(9007199254740991L) long portfolioNumber) Creates an instance of aAccountPortfolioAssignmentDTOrecord class.- Parameters:
accountNumber- the value for theaccountNumberrecord componentbroker- the value for thebrokerrecord componentportfolioNumber- the value for theportfolioNumberrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
broker
-
portfolioNumber
@Min(1L) @Max(9007199254740991L) public @Min(1L) @Max(9007199254740991L) long portfolioNumber()Returns the value of theportfolioNumberrecord component.- Returns:
- the value of the
portfolioNumberrecord component
-