Record Class DistributionStatsResponse
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.stats.dto.DistributionStatsResponse
public record DistributionStatsResponse(String field, DistributionMode mode, StatsMetricRequest metric, List<DistributionBucket> buckets)
extends Record
Contrato canonico de resposta para distribuicoes agregadas.
A resposta informa o campo analisado, o modo de distribuicao aplicado e a colecao de buckets resultante, pronta para histogramas, tabelas analiticas e cards de distribuicao.
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionStatsResponse(String field, DistributionMode mode, StatsMetricRequest metric, List<DistributionBucket> buckets) Creates an instance of aDistributionStatsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuckets()Returns the value of thebucketsrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.metric()Returns the value of themetricrecord component.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DistributionStatsResponse
public DistributionStatsResponse(String field, DistributionMode mode, StatsMetricRequest metric, List<DistributionBucket> buckets) Creates an instance of aDistributionStatsResponserecord class.- Parameters:
field- the value for thefieldrecord componentmode- the value for themoderecord componentmetric- the value for themetricrecord componentbuckets- the value for thebucketsrecord 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). -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
buckets
Returns the value of thebucketsrecord component.- Returns:
- the value of the
bucketsrecord component
-