Record Class AddWatchlistItemDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.watchlist.AddWatchlistItemDTO
- Record Components:
symbolUid- symbol uidpreferredSymbolAliasUid- preferred alias uid, if selected
-
Constructor Summary
ConstructorsConstructorDescriptionAddWatchlistItemDTO(@NotBlank @Size(max=255) String symbolUid, @Size(max=255) String preferredSymbolAliasUid) Creates an instance of aAddWatchlistItemDTOrecord 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.@Size(max=255) StringReturns the value of thepreferredSymbolAliasUidrecord component.@NotBlank @Size(max=255) StringReturns the value of thesymbolUidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddWatchlistItemDTO
public AddWatchlistItemDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String symbolUid, @Size(max=255) @Size(max=255) String preferredSymbolAliasUid) Creates an instance of aAddWatchlistItemDTOrecord class.- Parameters:
symbolUid- the value for thesymbolUidrecord componentpreferredSymbolAliasUid- the value for thepreferredSymbolAliasUidrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
symbolUid
-
preferredSymbolAliasUid
Returns the value of thepreferredSymbolAliasUidrecord component.- Returns:
- the value of the
preferredSymbolAliasUidrecord component
-