Package io.vertigo.database.timeseries
Record Class ClusteredMeasure
java.lang.Object
java.lang.Record
io.vertigo.database.timeseries.ClusteredMeasure
- All Implemented Interfaces:
Serializable
public record ClusteredMeasure(String measure, List<Integer> thresholds)
extends Record
implements Serializable
- Author:
- mlaroche
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClusteredMeasure(String measure, List<Integer> thresholds) Creates an instance of aClusteredMeasurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.measure()Returns the value of themeasurerecord component.Returns the value of thethresholdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClusteredMeasure
Creates an instance of aClusteredMeasurerecord class.- Parameters:
measure- the value for themeasurerecord componentthresholds- the value for thethresholdsrecord 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). -
measure
Returns the value of themeasurerecord component.- Returns:
- the value of the
measurerecord component
-
thresholds
Returns the value of thethresholdsrecord component.- Returns:
- the value of the
thresholdsrecord component
-