Package com.mxraven.admin.model
Record Class MailAnalyticsLatencyBySize
java.lang.Object
java.lang.Record
com.mxraven.admin.model.MailAnalyticsLatencyBySize
- Record Components:
sizeBin- message-size binsampleCount- number of samples in the binterminalOutcomeLatency- terminal-outcome latency for the bin
public record MailAnalyticsLatencyBySize(MailAnalyticsSizeBin sizeBin, long sampleCount, MailAnalyticsLatencyStatistic terminalOutcomeLatency)
extends Record
Terminal-outcome latency for one message-size bin.
-
Constructor Summary
ConstructorsConstructorDescriptionMailAnalyticsLatencyBySize(MailAnalyticsSizeBin sizeBin, long sampleCount, MailAnalyticsLatencyStatistic terminalOutcomeLatency) Creates an instance of aMailAnalyticsLatencyBySizerecord 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.longReturns the value of thesampleCountrecord component.sizeBin()Returns the value of thesizeBinrecord component.Returns the value of theterminalOutcomeLatencyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailAnalyticsLatencyBySize
public MailAnalyticsLatencyBySize(MailAnalyticsSizeBin sizeBin, long sampleCount, MailAnalyticsLatencyStatistic terminalOutcomeLatency) Creates an instance of aMailAnalyticsLatencyBySizerecord class.- Parameters:
sizeBin- the value for thesizeBinrecord componentsampleCount- the value for thesampleCountrecord componentterminalOutcomeLatency- the value for theterminalOutcomeLatencyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sizeBin
Returns the value of thesizeBinrecord component.- Returns:
- the value of the
sizeBinrecord component
-
sampleCount
public long sampleCount()Returns the value of thesampleCountrecord component.- Returns:
- the value of the
sampleCountrecord component
-
terminalOutcomeLatency
Returns the value of theterminalOutcomeLatencyrecord component.- Returns:
- the value of the
terminalOutcomeLatencyrecord component
-