Record Class IServerLicenseSystem.UsageDay
java.lang.Object
java.lang.Record
com.iizix.license.IServerLicenseSystem.UsageDay
- Record Components:
utcDay- The day as UTC midnight, epoch milliseconds.peakUsers- The most users signed in at once that day.peakSessions- The most sessions at once that day.
- Enclosing interface:
IServerLicenseSystem
public static record IServerLicenseSystem.UsageDay(long utcDay, int peakUsers, int peakSessions) extends Record
The peak use of one UTC day (6.5, ruling LV-17): counts only, never a user name.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionUsageDay(long utcDay, int peakUsers, int peakSessions) Creates an instance of aUsageDayrecord 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.intReturns the value of thepeakSessionsrecord component.intReturns the value of thepeakUsersrecord component.final StringtoString()Returns a string representation of this record class.longutcDay()Returns the value of theutcDayrecord component.
Constructor Details
UsageDay
public UsageDay(long utcDay, int peakUsers, int peakSessions) Creates an instance of aUsageDayrecord class.- Parameters:
utcDay- the value for theutcDayrecord componentpeakUsers- the value for thepeakUsersrecord componentpeakSessions- the value for thepeakSessionsrecord component
Method Details
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes.utcDay
peakUsers
peakSessions
public int peakSessions()Returns the value of thepeakSessionsrecord component.- Returns:
- the value of the
peakSessionsrecord component