Package app.ductape.sdk.cache
Record Class CacheTypes.DashboardMetrics
java.lang.Object
java.lang.Record
app.ductape.sdk.cache.CacheTypes.DashboardMetrics
- Enclosing class:
- CacheTypes
public static record CacheTypes.DashboardMetrics(int totalValues, int activeValues, int expiredValues, long totalSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDashboardMetrics(int totalValues, int activeValues, int expiredValues, long totalSize) Creates an instance of aDashboardMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpiredValuesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSizerecord component.intReturns the value of thetotalValuesrecord component.
-
Constructor Details
-
DashboardMetrics
public DashboardMetrics(int totalValues, int activeValues, int expiredValues, long totalSize) Creates an instance of aDashboardMetricsrecord class.- Parameters:
totalValues- the value for thetotalValuesrecord componentactiveValues- the value for theactiveValuesrecord componentexpiredValues- the value for theexpiredValuesrecord componenttotalSize- the value for thetotalSizerecord 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 '=='. -
totalValues
public int totalValues()Returns the value of thetotalValuesrecord component.- Returns:
- the value of the
totalValuesrecord component
-
activeValues
public int activeValues()Returns the value of theactiveValuesrecord component.- Returns:
- the value of the
activeValuesrecord component
-
expiredValues
public int expiredValues()Returns the value of theexpiredValuesrecord component.- Returns:
- the value of the
expiredValuesrecord component
-
totalSize
public long totalSize()Returns the value of thetotalSizerecord component.- Returns:
- the value of the
totalSizerecord component
-