Record Class CreateUpdateMarketPriceDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.market.price.CreateUpdateMarketPriceDTO
- Record Components:
date- market price datetimeInterval- market price intervalopen- open pricehigh- high pricelow- low priceclose- close pricevolume- volumesymbol- symbol tickerdataSource- data source
public record CreateUpdateMarketPriceDTO(@NotBlank @Size(max=255) String date, @NotBlank @Size(max=255) String timeInterval, @NotNull @Positive @DecimalMax("999999999") Double open, @NotNull @Positive @DecimalMax("999999999") Double high, @NotNull @Positive @DecimalMax("999999999") Double low, @NotNull @Positive @DecimalMax("999999999") Double close, @NotNull @PositiveOrZero @Max(9007199254740991L) Long volume, @NotBlank @Size(max=255) String symbol, @NotBlank @Size(max=255) String dataSource)
extends Record
Request object for creating and updating
MarketPrices.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateMarketPriceDTO(@NotBlank @Size(max=255) String date, @NotBlank @Size(max=255) String timeInterval, @NotNull @Positive @DecimalMax("999999999") Double open, @NotNull @Positive @DecimalMax("999999999") Double high, @NotNull @Positive @DecimalMax("999999999") Double low, @NotNull @Positive @DecimalMax("999999999") Double close, @NotNull @PositiveOrZero @Max(9007199254740991L) Long volume, @NotBlank @Size(max=255) String symbol, @NotBlank @Size(max=255) String dataSource) Creates an instance of aCreateUpdateMarketPriceDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Positive @DecimalMax("999999999") Doubleclose()Returns the value of thecloserecord component.@NotBlank @Size(max=255) StringReturns the value of thedataSourcerecord component.@NotBlank @Size(max=255) Stringdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Positive @DecimalMax("999999999") Doublehigh()Returns the value of thehighrecord component.@NotNull @Positive @DecimalMax("999999999") Doublelow()Returns the value of thelowrecord component.@NotNull @Positive @DecimalMax("999999999") Doubleopen()Returns the value of theopenrecord component.@NotBlank @Size(max=255) Stringsymbol()Returns the value of thesymbolrecord component.@NotBlank @Size(max=255) StringReturns the value of thetimeIntervalrecord component.final StringtoString()Returns a string representation of this record class.@NotNull @PositiveOrZero @Max(9007199254740991L) Longvolume()Returns the value of thevolumerecord component.
-
Constructor Details
-
CreateUpdateMarketPriceDTO
public CreateUpdateMarketPriceDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String date, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String timeInterval, @NotNull @Positive @DecimalMax("999999999") @NotNull @Positive @DecimalMax("999999999") Double open, @NotNull @Positive @DecimalMax("999999999") @NotNull @Positive @DecimalMax("999999999") Double high, @NotNull @Positive @DecimalMax("999999999") @NotNull @Positive @DecimalMax("999999999") Double low, @NotNull @Positive @DecimalMax("999999999") @NotNull @Positive @DecimalMax("999999999") Double close, @NotNull @PositiveOrZero @Max(9007199254740991L) @NotNull @PositiveOrZero @Max(9007199254740991L) Long volume, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String symbol, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String dataSource) Creates an instance of aCreateUpdateMarketPriceDTOrecord class.- Parameters:
date- the value for thedaterecord componenttimeInterval- the value for thetimeIntervalrecord componentopen- the value for theopenrecord componenthigh- the value for thehighrecord componentlow- the value for thelowrecord componentclose- the value for thecloserecord componentvolume- the value for thevolumerecord componentsymbol- the value for thesymbolrecord componentdataSource- the value for thedataSourcerecord 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). -
date
-
timeInterval
Returns the value of thetimeIntervalrecord component.- Returns:
- the value of the
timeIntervalrecord component
-
open
-
high
-
low
-
close
-
volume
-
symbol
-
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-