Package com.bleudev.ppl_utils
Record Class DataStorageHelper.StorageData
java.lang.Object
java.lang.Record
com.bleudev.ppl_utils.DataStorageHelper.StorageData
- Enclosing class:
DataStorageHelper
public static record DataStorageHelper.StorageData(long startRestartTime, long restartTime)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStorageData(long startRestartTime, long restartTime) Creates an instance of aStorageDatarecord 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.longReturns the value of therestartTimerecord component.longReturns the value of thestartRestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StorageData
public StorageData(long startRestartTime, long restartTime) Creates an instance of aStorageDatarecord class.- Parameters:
startRestartTime- the value for thestartRestartTimerecord componentrestartTime- the value for therestartTimerecord component
-
-
Method Details
-
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 '=='. -
startRestartTime
public long startRestartTime()Returns the value of thestartRestartTimerecord component.- Returns:
- the value of the
startRestartTimerecord component
-
restartTime
public long restartTime()Returns the value of therestartTimerecord component.- Returns:
- the value of the
restartTimerecord component
-