Package velox.api.layer1.dynamichistory
Record Class HeavyweightHistoricalUpdate.LoadingProgress
java.lang.Object
java.lang.Record
velox.api.layer1.dynamichistory.HeavyweightHistoricalUpdate.LoadingProgress
- Enclosing class:
HeavyweightHistoricalUpdate<T extends Event>
public static record HeavyweightHistoricalUpdate.LoadingProgress(int firstLevel, int targetLevel, int level)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoadingProgress(int firstLevel, int lastLevel) LoadingProgress(int firstLevel, int targetLevel, int level) Creates an instance of aLoadingProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstLevelrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanintlevel()Returns the value of thelevelrecord component.intReturns the value of thetargetLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadingProgress
public LoadingProgress(int firstLevel, int lastLevel) -
LoadingProgress
public LoadingProgress(int firstLevel, int targetLevel, int level) Creates an instance of aLoadingProgressrecord class.- Parameters:
firstLevel- the value for thefirstLevelrecord componenttargetLevel- the value for thetargetLevelrecord componentlevel- the value for thelevelrecord component
-
-
Method Details
-
isFirstUpdate
public boolean isFirstUpdate() -
isLastUpdate
public boolean isLastUpdate() -
nextProgress
-
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 with '=='. -
firstLevel
public int firstLevel()Returns the value of thefirstLevelrecord component.- Returns:
- the value of the
firstLevelrecord component
-
targetLevel
public int targetLevel()Returns the value of thetargetLevelrecord component.- Returns:
- the value of the
targetLevelrecord component
-
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-