Record Class WebEngineHistory.ResetInfo
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineHistory.ResetInfo
- Record Components:
resetAt- When it was made.admin- The administrator who made it.undoUntil- Until when it can be undone.countingSince- When the since-start counters started before the reset.dayRows- The stored daily rows it cleared.sinceRows- The since-start rows it cleared.
- Enclosing class:
WebEngineHistory
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionadmin()Returns the value of theadminrecord component.booleanTells whether the reset can still be undone at a moment.Returns the value of thecountingSincerecord component.intdayRows()Returns the value of thedayRowsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.resetAt()Returns the value of theresetAtrecord component.intReturns the value of thesinceRowsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theundoUntilrecord component.
Constructor Details
ResetInfo
public ResetInfo(Instant resetAt, String admin, Instant undoUntil, Instant countingSince, int dayRows, int sinceRows) Creates an instance of aResetInforecord class.- Parameters:
resetAt- the value for theresetAtrecord componentadmin- the value for theadminrecord componentundoUntil- the value for theundoUntilrecord componentcountingSince- the value for thecountingSincerecord componentdayRows- the value for thedayRowsrecord componentsinceRows- the value for thesinceRowsrecord component
Method Details
canUndo
Tells whether the reset can still be undone at a moment.- Parameters:
now- The moment.- Returns:
- true while the undo time has not passed.
toString
hashCode
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 thecomparemethod from their corresponding wrapper classes.resetAt
admin
undoUntil
countingSince
Returns the value of thecountingSincerecord component.- Returns:
- the value of the
countingSincerecord component
dayRows
sinceRows