Record Class CommentsStatisticsEvent
java.lang.Object
java.lang.Record
com.atlassian.jira.analytics.statistics.comments.CommentsStatisticsEvent
-
Constructor Summary
ConstructorsConstructorDescriptionCommentsStatisticsEvent
(Map<Long, Long> distribution, long sum, long avg, long max, long min) Creates an instance of aCommentsStatisticsEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
avg()
Returns the value of theavg
record component.Returns the value of thedistribution
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
max()
Returns the value of themax
record component.long
min()
Returns the value of themin
record component.long
sum()
Returns the value of thesum
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CommentsStatisticsEvent
Creates an instance of aCommentsStatisticsEvent
record class.- Parameters:
distribution
- the value for thedistribution
record componentsum
- the value for thesum
record componentavg
- the value for theavg
record componentmax
- the value for themax
record componentmin
- the value for themin
record 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 '=='. -
distribution
Returns the value of thedistribution
record component.- Returns:
- the value of the
distribution
record component
-
sum
public long sum()Returns the value of thesum
record component.- Returns:
- the value of the
sum
record component
-
avg
public long avg()Returns the value of theavg
record component.- Returns:
- the value of the
avg
record component
-
max
public long max()Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-
min
public long min()Returns the value of themin
record component.- Returns:
- the value of the
min
record component
-