Record Class GraphThresholds
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.preferences.GraphThresholds
-
Constructor Summary
ConstructorsConstructorDescriptionGraphThresholds(double highThreshold, double mediumThreshold) Creates an instance of aGraphThresholdsrecord 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.doubleReturns the value of thehighThresholdrecord component.doubleReturns the value of themediumThresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraphThresholds
public GraphThresholds(double highThreshold, double mediumThreshold) Creates an instance of aGraphThresholdsrecord class.- Parameters:
highThreshold- the value for thehighThresholdrecord componentmediumThreshold- the value for themediumThresholdrecord 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. -
highThreshold
public double highThreshold()Returns the value of thehighThresholdrecord component.- Returns:
- the value of the
highThresholdrecord component
-
mediumThreshold
public double mediumThreshold()Returns the value of themediumThresholdrecord component.- Returns:
- the value of the
mediumThresholdrecord component
-