Record Class Trend
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.rendering.json.Trend
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhen a trend is reversed increase is "bad" (red) and decrease is "good" (green) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanreversed()Returns the value of thereversedrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
REVERSED
public static final boolean REVERSEDWhen a trend is reversed increase is "bad" (red) and decrease is "good" (green)- See Also:
-
-
Constructor Details
-
Trend
public Trend(long before, long after, boolean reversed) -
Trend
public Trend(double before, double after, boolean reversed) -
Trend
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
reversed
public boolean reversed()Returns the value of thereversedrecord component.- Returns:
- the value of the
reversedrecord component
-