Package com.qtsurfer.api.sdk
Record Class BoundedEquityCurve
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.BoundedEquityCurve
public record BoundedEquityCurve(List<EquityCurvePoint> points, int inputPointCount, boolean resampled)
extends Record
Normalized bounded sweep-run curve independent of the generated response model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault maximum points requested by the high-level SDK method.static final intAbsolute process-safety ceiling, sized for an authorised Elite/Enterprise request. -
Constructor Summary
ConstructorsConstructorDescriptionBoundedEquityCurve(List<EquityCurvePoint> points, int inputPointCount, boolean resampled) Creates an instance of aBoundedEquityCurverecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundedEquityCurvedecode(com.qtsurfer.api.client.model.EquityCurveResult result, int maxResample) Decode a compact response into absolute points and verify the requested bound.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinputPointCountrecord component.points()Returns the value of thepointsrecord component.booleanReturns the value of theresampledrecord component.final StringtoString()Returns a string representation of this record class.static voidvalidateMaxResample(int maxResample) Validate a caller-selected bounded resample count.
-
Field Details
-
DEFAULT_MAX_RESAMPLE
public static final int DEFAULT_MAX_RESAMPLEDefault maximum points requested by the high-level SDK method.- See Also:
-
MAX_MAX_RESAMPLE
public static final int MAX_MAX_RESAMPLEAbsolute process-safety ceiling, sized for an authorised Elite/Enterprise request.- See Also:
-
-
Constructor Details
-
BoundedEquityCurve
Creates an instance of aBoundedEquityCurverecord class.- Parameters:
points- the value for thepointsrecord componentinputPointCount- the value for theinputPointCountrecord componentresampled- the value for theresampledrecord component
-
-
Method Details
-
decode
public static BoundedEquityCurve decode(com.qtsurfer.api.client.model.EquityCurveResult result, int maxResample) Decode a compact response into absolute points and verify the requested bound.- Parameters:
result- generated result returned by the APImaxResample- requested point ceiling- Returns:
- immutable normalized curve
-
validateMaxResample
public static void validateMaxResample(int maxResample) Validate a caller-selected bounded resample count. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
inputPointCount
public int inputPointCount()Returns the value of theinputPointCountrecord component.- Returns:
- the value of the
inputPointCountrecord component
-
resampled
public boolean resampled()Returns the value of theresampledrecord component.- Returns:
- the value of the
resampledrecord component
-