Record Class WebEngineHistory.DayTotals
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineHistory.DayTotals
- Record Components:
day- The day, UTC.ended- The connects whose engine ended.behind- The connects whose engine was behind.patched- The connects whose engine was patched.notAssessed- The connects not assessed.
- Enclosing class:
WebEngineHistory
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionlongassessed()Gets the assessed connects: ended, behind and patched.longbehind()Returns the value of thebehindrecord component.day()Returns the value of thedayrecord component.longended()Returns the value of theendedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thenotAssessedrecord component.longpatched()Returns the value of thepatchedrecord component.final StringtoString()Returns a string representation of this record class.intGets the share of the assessed connects that were unpatched.
Constructor Details
DayTotals
Creates an instance of aDayTotalsrecord class.- Parameters:
day- the value for thedayrecord componentended- the value for theendedrecord componentbehind- the value for thebehindrecord componentpatched- the value for thepatchedrecord componentnotAssessed- the value for thenotAssessedrecord component
Method Details
assessed
public long assessed()Gets the assessed connects: ended, behind and patched.- Returns:
- The count.
unpatchedPercent
public int unpatchedPercent()Gets the share of the assessed connects that were unpatched.- Returns:
- The percent, rounded, or -1 when nothing was assessed.
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.day
ended
behind
patched
notAssessed
public long notAssessed()Returns the value of thenotAssessedrecord component.- Returns:
- the value of the
notAssessedrecord component