Record Class Breakdown
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.modifier.Breakdown
public record Breakdown(double baseValue, double finalValue, @NotNull List<Breakdown.Step> steps)
extends Record
Full trace and result of evaluating a
ModifierType pipeline.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single active modifier step that contributed to the final value. -
Constructor Summary
ConstructorsConstructorDescriptionBreakdown(double baseValue, double finalValue, @NotNull List<Breakdown.Step> steps) Creates an instance of aBreakdownrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebaseValuerecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefinalValuerecord component.final inthashCode()Returns a hash code value for this object.@NotNull List<Breakdown.Step> steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.double
-
Constructor Details
-
Breakdown
Creates an instance of aBreakdownrecord class.- Parameters:
baseValue- the value for thebaseValuerecord componentfinalValue- the value for thefinalValuerecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
totalMultiplier
public double totalMultiplier() -
activeDisplayTags
-
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. -
baseValue
public double baseValue()Returns the value of thebaseValuerecord component.- Returns:
- the value of the
baseValuerecord component
-
finalValue
public double finalValue()Returns the value of thefinalValuerecord component.- Returns:
- the value of the
finalValuerecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-