Record Class BrokerSseLegacyDateOptions

java.lang.Object
java.lang.Record
markets.alpaca.client.broker.sse.BrokerSseLegacyDateOptions

public record BrokerSseLegacyDateOptions(LocalDate since, LocalDate until, Integer sinceId, Integer untilId, String sinceUlid, String untilUlid) extends Record
Optional LocalDate, numeric ID, and ULID filters for legacy Broker SSE endpoints.
  • Constructor Details

    • BrokerSseLegacyDateOptions

      public BrokerSseLegacyDateOptions(LocalDate since, LocalDate until, Integer sinceId, Integer untilId, String sinceUlid, String untilUlid)
      Creates an instance of a BrokerSseLegacyDateOptions record class.
      Parameters:
      since - the value for the since record component
      until - the value for the until record component
      sinceId - the value for the sinceId record component
      untilId - the value for the untilId record component
      sinceUlid - the value for the sinceUlid record component
      untilUlid - the value for the untilUlid record component
  • Method Details

    • empty

      public static BrokerSseLegacyDateOptions empty()
    • builder

      public static BrokerSseLegacyDateOptions.Builder builder()
    • 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.
    • since

      public LocalDate since()
      Returns the value of the since record component.
      Returns:
      the value of the since record component
    • until

      public LocalDate until()
      Returns the value of the until record component.
      Returns:
      the value of the until record component
    • sinceId

      public Integer sinceId()
      Returns the value of the sinceId record component.
      Returns:
      the value of the sinceId record component
    • untilId

      public Integer untilId()
      Returns the value of the untilId record component.
      Returns:
      the value of the untilId record component
    • sinceUlid

      public String sinceUlid()
      Returns the value of the sinceUlid record component.
      Returns:
      the value of the sinceUlid record component
    • untilUlid

      public String untilUlid()
      Returns the value of the untilUlid record component.
      Returns:
      the value of the untilUlid record component