Package com.qtsurfer.api.sdk
Record Class CompiledStrategy
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.CompiledStrategy
public record CompiledStrategy(String id, List<com.qtsurfer.api.client.model.DeclaredProperty> declaredProperties)
extends Record
Compilation metadata discovered without constructing a strategy. The property list is
best-effort: an absent name may still be valid when it is registered by attached runtime config.
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledStrategy(String id, List<com.qtsurfer.api.client.model.DeclaredProperty> declaredProperties) Creates an instance of aCompiledStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<com.qtsurfer.api.client.model.DeclaredProperty>Returns the value of thedeclaredPropertiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompiledStrategy
public CompiledStrategy(String id, List<com.qtsurfer.api.client.model.DeclaredProperty> declaredProperties) Creates an instance of aCompiledStrategyrecord class.- Parameters:
id- the value for theidrecord componentdeclaredProperties- the value for thedeclaredPropertiesrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
declaredProperties
Returns the value of thedeclaredPropertiesrecord component.- Returns:
- the value of the
declaredPropertiesrecord component
-