Record Class VariableData
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.VariableData
public record VariableData(Long id, @NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") String variableName, String variableDescription, Long variableAreaId, Long variableSubAreaId, String variableFormula, @NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) String variableType, Integer row, Integer variableOrder, Integer variableDepth, boolean variableApplyToHistoricals, @NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) String variableFormat, List<VariableValueData> variableValues, List<Long> variableDependencies, String evaluatedVariableFormula, Long originalId, String evaluatedXLformula, List<Object[]> historicalValues, List<Object[]> projectionValues, boolean modelledAtSegment, List<Object> singleOrConstantValue, List<Object> yearToDateValue, List<Object> yearToGoValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVariableData(Long id, @NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") String variableName, String variableDescription, Long variableAreaId, Long variableSubAreaId, String variableFormula, @NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) String variableType, Integer row, Integer variableOrder, Integer variableDepth, boolean variableApplyToHistoricals, @NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) String variableFormat, List<VariableValueData> variableValues, List<Long> variableDependencies, String evaluatedVariableFormula, Long originalId, String evaluatedXLformula, List<Object[]> historicalValues, List<Object[]> projectionValues, boolean modelledAtSegment, List<Object> singleOrConstantValue, List<Object> yearToDateValue, List<Object> yearToGoValue) Creates an instance of aVariableDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatedVariableFormularecord component.Returns the value of theevaluatedXLformularecord component.getValueInPeriod(Integer period, Integer segmentIndex) final inthashCode()Returns a hash code value for this object.Returns the value of thehistoricalValuesrecord component.id()Returns the value of theidrecord component.booleanbooleanReturns the value of themodelledAtSegmentrecord component.Returns the value of theoriginalIdrecord component.Returns the value of theprojectionValuesrecord component.row()Returns the value of therowrecord component.Returns the value of thesingleOrConstantValuerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevariableApplyToHistoricalsrecord component.Returns the value of thevariableAreaIdrecord component.Returns the value of thevariableDependenciesrecord component.Returns the value of thevariableDepthrecord component.Returns the value of thevariableDescriptionrecord component.@NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) StringReturns the value of thevariableFormatrecord component.Returns the value of thevariableFormularecord component.@NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") StringReturns the value of thevariableNamerecord component.Returns the value of thevariableOrderrecord component.Returns the value of thevariableSubAreaIdrecord component.@NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) StringReturns the value of thevariableTyperecord component.Returns the value of thevariableValuesrecord component.Returns the value of theyearToDateValuerecord component.Returns the value of theyearToGoValuerecord component.
-
Constructor Details
-
VariableData
public VariableData(Long id, @NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") @NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") String variableName, String variableDescription, Long variableAreaId, Long variableSubAreaId, String variableFormula, @NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) @NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) String variableType, Integer row, Integer variableOrder, Integer variableDepth, boolean variableApplyToHistoricals, @NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) @NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) String variableFormat, List<VariableValueData> variableValues, List<Long> variableDependencies, String evaluatedVariableFormula, Long originalId, String evaluatedXLformula, List<Object[]> historicalValues, List<Object[]> projectionValues, boolean modelledAtSegment, List<Object> singleOrConstantValue, List<Object> yearToDateValue, List<Object> yearToGoValue) Creates an instance of aVariableDatarecord class.- Parameters:
id- the value for theidrecord componentvariableName- the value for thevariableNamerecord componentvariableDescription- the value for thevariableDescriptionrecord componentvariableAreaId- the value for thevariableAreaIdrecord componentvariableSubAreaId- the value for thevariableSubAreaIdrecord componentvariableFormula- the value for thevariableFormularecord componentvariableType- the value for thevariableTyperecord componentrow- the value for therowrecord componentvariableOrder- the value for thevariableOrderrecord componentvariableDepth- the value for thevariableDepthrecord componentvariableApplyToHistoricals- the value for thevariableApplyToHistoricalsrecord componentvariableFormat- the value for thevariableFormatrecord componentvariableValues- the value for thevariableValuesrecord componentvariableDependencies- the value for thevariableDependenciesrecord componentevaluatedVariableFormula- the value for theevaluatedVariableFormularecord componentoriginalId- the value for theoriginalIdrecord componentevaluatedXLformula- the value for theevaluatedXLformularecord componenthistoricalValues- the value for thehistoricalValuesrecord componentprojectionValues- the value for theprojectionValuesrecord componentmodelledAtSegment- the value for themodelledAtSegmentrecord componentsingleOrConstantValue- the value for thesingleOrConstantValuerecord componentyearToDateValue- the value for theyearToDateValuerecord componentyearToGoValue- the value for theyearToGoValuerecord component
-
-
Method Details
-
isSingleEntry
public boolean isSingleEntry() -
getValueInPeriod
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
variableName
@NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") public @NotEmpty @Pattern(regexp="^(?:[A-z]|[0-9]|[ ]|[%])*") String variableName()Returns the value of thevariableNamerecord component.- Returns:
- the value of the
variableNamerecord component
-
variableDescription
Returns the value of thevariableDescriptionrecord component.- Returns:
- the value of the
variableDescriptionrecord component
-
variableAreaId
Returns the value of thevariableAreaIdrecord component.- Returns:
- the value of the
variableAreaIdrecord component
-
variableSubAreaId
Returns the value of thevariableSubAreaIdrecord component.- Returns:
- the value of the
variableSubAreaIdrecord component
-
variableFormula
Returns the value of thevariableFormularecord component.- Returns:
- the value of the
variableFormularecord component
-
variableType
@NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row", flags=CASE_INSENSITIVE) public @NotEmpty @Pattern(regexp="input|calc|constant|check|single_result|kpi|sub_total_row|total_row",flags=CASE_INSENSITIVE) String variableType()Returns the value of thevariableTyperecord component.- Returns:
- the value of the
variableTyperecord component
-
row
Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
variableOrder
Returns the value of thevariableOrderrecord component.- Returns:
- the value of the
variableOrderrecord component
-
variableDepth
Returns the value of thevariableDepthrecord component.- Returns:
- the value of the
variableDepthrecord component
-
variableApplyToHistoricals
public boolean variableApplyToHistoricals()Returns the value of thevariableApplyToHistoricalsrecord component.- Returns:
- the value of the
variableApplyToHistoricalsrecord component
-
variableFormat
@NotEmpty @Pattern(regexp="decimal|integer|percent|date", flags=CASE_INSENSITIVE) public @NotEmpty @Pattern(regexp="decimal|integer|percent|date",flags=CASE_INSENSITIVE) String variableFormat()Returns the value of thevariableFormatrecord component.- Returns:
- the value of the
variableFormatrecord component
-
variableValues
Returns the value of thevariableValuesrecord component.- Returns:
- the value of the
variableValuesrecord component
-
variableDependencies
Returns the value of thevariableDependenciesrecord component.- Returns:
- the value of the
variableDependenciesrecord component
-
evaluatedVariableFormula
Returns the value of theevaluatedVariableFormularecord component.- Returns:
- the value of the
evaluatedVariableFormularecord component
-
originalId
Returns the value of theoriginalIdrecord component.- Returns:
- the value of the
originalIdrecord component
-
evaluatedXLformula
Returns the value of theevaluatedXLformularecord component.- Returns:
- the value of the
evaluatedXLformularecord component
-
historicalValues
Returns the value of thehistoricalValuesrecord component.- Returns:
- the value of the
historicalValuesrecord component
-
projectionValues
Returns the value of theprojectionValuesrecord component.- Returns:
- the value of the
projectionValuesrecord component
-
modelledAtSegment
public boolean modelledAtSegment()Returns the value of themodelledAtSegmentrecord component.- Returns:
- the value of the
modelledAtSegmentrecord component
-
singleOrConstantValue
Returns the value of thesingleOrConstantValuerecord component.- Returns:
- the value of the
singleOrConstantValuerecord component
-
yearToDateValue
Returns the value of theyearToDateValuerecord component.- Returns:
- the value of the
yearToDateValuerecord component
-
yearToGoValue
Returns the value of theyearToGoValuerecord component.- Returns:
- the value of the
yearToGoValuerecord component
-