Package com.qtsurfer.api.sdk
Record Class ValidationOutcome.NotQueued
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.ValidationOutcome.NotQueued
- Record Components:
state- the platform's record of the strategy, nevernull
- All Implemented Interfaces:
ValidationOutcome
- Enclosing interface:
- ValidationOutcome
public static record ValidationOutcome.NotQueued(com.qtsurfer.api.client.model.StrategyState state)
extends Record
implements ValidationOutcome
This call queued nothing, because the platform already accounts for
the current compilation.
state() is what it holds right now,
which may be a recorded verdict (passed / failed) or
an outstanding check (pending) queued by an earlier call.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.qtsurfer.api.sdk.ValidationOutcome
ValidationOutcome.NotQueued, ValidationOutcome.Queued -
Constructor Summary
ConstructorsConstructorDescriptionNotQueued(com.qtsurfer.api.client.model.StrategyState state) Creates an instance of aNotQueuedrecord 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.booleanqueued()Returnsfalse— this call queued nothing.com.qtsurfer.api.client.model.StrategyStatestate()Returns the value of thestaterecord component.Returns the strategy id carried by the state.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NotQueued
public NotQueued(com.qtsurfer.api.client.model.StrategyState state) Creates an instance of aNotQueuedrecord class.- Parameters:
state- the value for thestaterecord component
-
-
Method Details
-
queued
public boolean queued()Returnsfalse— this call queued nothing.- Specified by:
queuedin interfaceValidationOutcome- Returns:
false— this call queued nothing
-
strategyId
Returns the strategy id carried by the state.- Specified by:
strategyIdin interfaceValidationOutcome- Returns:
- the strategy id carried by the state
-
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). -
state
public com.qtsurfer.api.client.model.StrategyState state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-