Record Class ResolvedStatsMetric
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.stats.service.ResolvedStatsMetric
- Record Components:
metric- request-side metric definitiondescriptor- resolved metric field descriptor, ornullfor COUNT
public record ResolvedStatsMetric(StatsMetricRequest metric, StatsFieldDescriptor descriptor)
extends Record
Internal execution contract for a resolved stats metric.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedStatsMetric(StatsMetricRequest metric, StatsFieldDescriptor descriptor) Creates an instance of aResolvedStatsMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thedescriptorrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedStatsMetric
Creates an instance of aResolvedStatsMetricrecord class.- Parameters:
metric- the value for themetricrecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
alias
-
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). -
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-