Record Class AccessPatternAnalyzer.TemporalPattern
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.AccessPatternAnalyzer.TemporalPattern
- Enclosing class:
AccessPatternAnalyzer
public static record AccessPatternAnalyzer.TemporalPattern(int[] peakHours, int[] quietHours, double averageDayVariance)
extends Record
Temporal pattern information.
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalPattern(int[] peakHours, int[] quietHours, double averageDayVariance) Creates an instance of aTemporalPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaverageDayVariancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.int[]Returns the value of thepeakHoursrecord component.int[]Returns the value of thequietHoursrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemporalPattern
public TemporalPattern(int[] peakHours, int[] quietHours, double averageDayVariance) Creates an instance of aTemporalPatternrecord class.- Parameters:
peakHours- the value for thepeakHoursrecord componentquietHours- the value for thequietHoursrecord componentaverageDayVariance- the value for theaverageDayVariancerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
peakHours
public int[] peakHours()Returns the value of thepeakHoursrecord component.- Returns:
- the value of the
peakHoursrecord component
-
quietHours
public int[] quietHours()Returns the value of thequietHoursrecord component.- Returns:
- the value of the
quietHoursrecord component
-
averageDayVariance
public double averageDayVariance()Returns the value of theaverageDayVariancerecord component.- Returns:
- the value of the
averageDayVariancerecord component
-