Record Class DataPeriod
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.helpers.DataPeriod
- Record Components:
myModel- is the attached modelperiodOffset- is the current period being assessed (example : -1 for historical period and 5 for projection period)segmentOffsetFactor- is the multiplier to be applied to segment offset length (model.getNumberOfPeriods)
-
Constructor Summary
ConstructorsConstructorDescriptionDataPeriod(Model myModel, Integer periodOffset, Integer segmentOffsetFactor, boolean isConstant) Creates an instance of aDataPeriodrecord 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.booleanReturns the value of theisConstantrecord component.booleanisWithinBound(Integer periodToCheck) lowBound()myModel()Returns the value of themyModelrecord component.Returns the value of theperiodOffsetrecord component.Returns the value of thesegmentOffsetFactorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataPeriod
public DataPeriod(Model myModel, Integer periodOffset, Integer segmentOffsetFactor, boolean isConstant) Creates an instance of aDataPeriodrecord class.- Parameters:
myModel- the value for themyModelrecord componentperiodOffset- the value for theperiodOffsetrecord componentsegmentOffsetFactor- the value for thesegmentOffsetFactorrecord componentisConstant- the value for theisConstantrecord component
-
-
Method Details
-
getTotalOffsetAsInteger
-
getColumn
-
getSegmentOffsetAsInteger
-
lowBound
-
highBound
-
isWithinBound
-
previousPeriod
-
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 '=='. -
myModel
Returns the value of themyModelrecord component.- Returns:
- the value of the
myModelrecord component
-
periodOffset
Returns the value of theperiodOffsetrecord component.- Returns:
- the value of the
periodOffsetrecord component
-
segmentOffsetFactor
Returns the value of thesegmentOffsetFactorrecord component.- Returns:
- the value of the
segmentOffsetFactorrecord component
-
isConstant
public boolean isConstant()Returns the value of theisConstantrecord component.- Returns:
- the value of the
isConstantrecord component
-