Package velox.api.layer1.data
Record Class Layer1ApiProviderSupportedFeatures.SupportedOrderDurationsBundle
java.lang.Object
java.lang.Record
velox.api.layer1.data.Layer1ApiProviderSupportedFeatures.SupportedOrderDurationsBundle
- Record Components:
supportedLimitOrderDurations- supported durations for limit orders. Can't be null.supportedStopOrderDurations- supported durations for stop orders. Can't be null.
- Enclosing class:
Layer1ApiProviderSupportedFeatures
public static record Layer1ApiProviderSupportedFeatures.SupportedOrderDurationsBundle(@NonNull List<OrderDuration> supportedLimitOrderDurations, @NonNull List<OrderDuration> supportedStopOrderDurations)
extends Record
Supported limit and stop durations for instrument.
-
Constructor Summary
ConstructorsConstructorDescriptionSupportedOrderDurationsBundle(@NonNull List<OrderDuration> supportedLimitOrderDurations, @NonNull List<OrderDuration> supportedStopOrderDurations) Creates an instance of aSupportedOrderDurationsBundlerecord 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.@NonNull List<OrderDuration>Returns the value of thesupportedLimitOrderDurationsrecord component.@NonNull List<OrderDuration>Returns the value of thesupportedStopOrderDurationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SupportedOrderDurationsBundle
public SupportedOrderDurationsBundle(@NonNull List<OrderDuration> supportedLimitOrderDurations, @NonNull List<OrderDuration> supportedStopOrderDurations) Creates an instance of aSupportedOrderDurationsBundlerecord class.- Parameters:
supportedLimitOrderDurations- the value for thesupportedLimitOrderDurationsrecord componentsupportedStopOrderDurations- the value for thesupportedStopOrderDurationsrecord component
-
-
Method Details
-
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. -
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. -
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). -
supportedLimitOrderDurations
Returns the value of thesupportedLimitOrderDurationsrecord component.- Returns:
- the value of the
supportedLimitOrderDurationsrecord component
-
supportedStopOrderDurations
Returns the value of thesupportedStopOrderDurationsrecord component.- Returns:
- the value of the
supportedStopOrderDurationsrecord component
-