java.lang.Object
java.lang.Record
com.atlassian.jira.search.aggregation.twodimensional.Statistic
Record Components:
value - the loaded value of the field
count - the count of the field

@Internal public record Statistic(Object value, long count) extends Record
Holder for statistics for a value containing the stored/indexed key value, the loaded value and it's count.
Since:
10.7
  • Constructor Summary

    Constructors
    Constructor
    Description
    Statistic(Object value, long count)
    Creates an instance of a Statistic record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the count record component.
    boolean
    Compares the values stored on the Statistic for equality.
    int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    Returns the value of the value record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Statistic

      public Statistic(Object value, long count)
      Creates an instance of a Statistic record class.
      Parameters:
      value - the value for the value record component
      count - the value for the count record component
  • Method Details

    • equals

      public boolean equals(Object o)
      Compares the values stored on the Statistic for equality.
      Specified by:
      equals in class Record
      Parameters:
      o - the reference object with which to compare.
      Returns:
      true if the statistic values are considered equal, otherwise false.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • value

      public Object value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • count

      public long count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component