Package codes.grow.packages.datadogapm
Record Class SpanGroupBy.Sort
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.SpanGroupBy.Sort
- Record Components:
aggregation- aggregation to sort by, ornullmetric- metric to sort by, ornullorder-ascordesc, ornulltype-alphabeticalormeasure, ornull
- Enclosing class:
SpanGroupBy
public static record SpanGroupBy.Sort(String aggregation, String metric, String order, String type)
extends Record
Order of the groups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metric()Returns the value of themetricrecord component.order()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Sort
Creates an instance of aSortrecord class.- Parameters:
aggregation- the value for theaggregationrecord componentmetric- the value for themetricrecord componentorder- the value for theorderrecord componenttype- the value for thetyperecord 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 withObjects::equals(Object,Object). -
aggregation
Returns the value of theaggregationrecord component.- Returns:
- the value of the
aggregationrecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-