Record Class DistributionBucketDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.DistributionBucketDTO
- Record Components:
lowerBoundPercent- lower bound percentupperBoundPercent- upper bound percentcount- countprobability- probability
public record DistributionBucketDTO(double lowerBoundPercent, double upperBoundPercent, int count, double probability)
extends Record
Distribution-bucket DTO.
- Version:
- 2.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionBucketDTO(double lowerBoundPercent, double upperBoundPercent, int count, double probability) Creates an instance of aDistributionBucketDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelowerBoundPercentrecord component.doubleReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theupperBoundPercentrecord component.
-
Constructor Details
-
DistributionBucketDTO
public DistributionBucketDTO(double lowerBoundPercent, double upperBoundPercent, int count, double probability) Creates an instance of aDistributionBucketDTOrecord class.- Parameters:
lowerBoundPercent- the value for thelowerBoundPercentrecord componentupperBoundPercent- the value for theupperBoundPercentrecord componentcount- the value for thecountrecord componentprobability- the value for theprobabilityrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
lowerBoundPercent
public double lowerBoundPercent()Returns the value of thelowerBoundPercentrecord component.- Returns:
- the value of the
lowerBoundPercentrecord component
-
upperBoundPercent
public double upperBoundPercent()Returns the value of theupperBoundPercentrecord component.- Returns:
- the value of the
upperBoundPercentrecord component
-
count
-
probability
public double probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-