Record Class DashUserStatsResponse
java.lang.Object
java.lang.Record
org.localify.dashboard.dto.response.DashUserStatsResponse
- Record Components:
guestUsers- The statistics for guest users.registeredUsers- The statistics for registered users.activeUsers- The statistics for active users.
public record DashUserStatsResponse(TimeStatsContainer guestUsers, TimeStatsContainer registeredUsers, TimeStatsContainer activeUsers)
extends Record
Represents the response for user statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionDashUserStatsResponse(TimeStatsContainer guestUsers, TimeStatsContainer registeredUsers, TimeStatsContainer activeUsers) Creates an instance of aDashUserStatsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveUsersrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguestUsersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theregisteredUsersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashUserStatsResponse
public DashUserStatsResponse(TimeStatsContainer guestUsers, TimeStatsContainer registeredUsers, TimeStatsContainer activeUsers) Creates an instance of aDashUserStatsResponserecord class.- Parameters:
guestUsers- the value for theguestUsersrecord componentregisteredUsers- the value for theregisteredUsersrecord componentactiveUsers- the value for theactiveUsersrecord 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 withObjects::equals(Object,Object). -
guestUsers
Returns the value of theguestUsersrecord component.- Returns:
- the value of the
guestUsersrecord component
-
registeredUsers
Returns the value of theregisteredUsersrecord component.- Returns:
- the value of the
registeredUsersrecord component
-
activeUsers
Returns the value of theactiveUsersrecord component.- Returns:
- the value of the
activeUsersrecord component
-