Record Class CategoriesDistribution
java.lang.Object
java.lang.Record
com.evolveum.midpoint.ninja.action.stats.CategoriesDistribution
- All Implemented Interfaces:
PrismTransformableRecord
public record CategoriesDistribution(Collection<Float> distribution)
extends Record
implements PrismTransformableRecord
-
Constructor Summary
ConstructorsConstructorDescriptionCategoriesDistribution(Collection<Float> distribution) Creates an instance of aCategoriesDistributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasPrismContainerValue(ItemFactory itemFactory) Returns the value of thedistributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CategoriesDistribution
Creates an instance of aCategoriesDistributionrecord class.- Parameters:
distribution- the value for thedistributionrecord component
-
-
Method Details
-
asPrismContainerValue
public PrismContainerValue<Containerable> asPrismContainerValue(ItemFactory itemFactory) throws SchemaException - Specified by:
asPrismContainerValuein interfacePrismTransformableRecord- Throws:
SchemaException
-
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). -
distribution
Returns the value of thedistributionrecord component.- Returns:
- the value of the
distributionrecord component
-