Record Class CreateUpdateMarketPriceDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.market.price.CreateUpdateMarketPriceDTO
Record Components:
date - market price date
timeInterval - market price interval
open - open price
high - high price
low - low price
close - close price
volume - volume
symbol - symbol ticker
dataSource - 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

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a CreateUpdateMarketPriceDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull @Positive @DecimalMax("999999999") Double
    Returns the value of the close record component.
    @NotBlank @Size(max=255) String
    Returns the value of the dataSource record component.
    @NotBlank @Size(max=255) String
    Returns the value of the date record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull @Positive @DecimalMax("999999999") Double
    Returns the value of the high record component.
    @NotNull @Positive @DecimalMax("999999999") Double
    low()
    Returns the value of the low record component.
    @NotNull @Positive @DecimalMax("999999999") Double
    Returns the value of the open record component.
    @NotBlank @Size(max=255) String
    Returns the value of the symbol record component.
    @NotBlank @Size(max=255) String
    Returns the value of the timeInterval record component.
    final String
    Returns a string representation of this record class.
    @NotNull @PositiveOrZero @Max(9007199254740991L) Long
    Returns the value of the volume record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CreateUpdateMarketPriceDTO record class.
      Parameters:
      date - the value for the date record component
      timeInterval - the value for the timeInterval record component
      open - the value for the open record component
      high - the value for the high record component
      low - the value for the low record component
      close - the value for the close record component
      volume - the value for the volume record component
      symbol - the value for the symbol record component
      dataSource - the value for the dataSource record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • date

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • timeInterval

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String timeInterval()
      Returns the value of the timeInterval record component.
      Returns:
      the value of the timeInterval record component
    • open

      @NotNull @Positive @DecimalMax("999999999") public @NotNull @Positive @DecimalMax("999999999") Double open()
      Returns the value of the open record component.
      Returns:
      the value of the open record component
    • high

      @NotNull @Positive @DecimalMax("999999999") public @NotNull @Positive @DecimalMax("999999999") Double high()
      Returns the value of the high record component.
      Returns:
      the value of the high record component
    • low

      @NotNull @Positive @DecimalMax("999999999") public @NotNull @Positive @DecimalMax("999999999") Double low()
      Returns the value of the low record component.
      Returns:
      the value of the low record component
    • close

      @NotNull @Positive @DecimalMax("999999999") public @NotNull @Positive @DecimalMax("999999999") Double close()
      Returns the value of the close record component.
      Returns:
      the value of the close record component
    • volume

      @NotNull @PositiveOrZero @Max(9007199254740991L) public @NotNull @PositiveOrZero @Max(9007199254740991L) Long volume()
      Returns the value of the volume record component.
      Returns:
      the value of the volume record component
    • symbol

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String symbol()
      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component
    • dataSource

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String dataSource()
      Returns the value of the dataSource record component.
      Returns:
      the value of the dataSource record component