Record Class GuiComputedValue<T>
java.lang.Object
java.lang.Record
com.render.api.gui.style.GuiComputedValue<T>
- Type Parameters:
T- property type- Record Components:
value- detached computed valuesource- winning cascade sourcematchedRule- winning rule when sourced from a stylesheetinheritedFromId- originating parent ID for inherited values, when available
public record GuiComputedValue<T>(T value, GuiPropertySource source, GuiMatchedRule matchedRule, String inheritedFromId)
extends Record
A resolved property value plus cascade trace information.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiComputedValue(T value, GuiPropertySource source, GuiMatchedRule matchedRule, String inheritedFromId) Creates an instance of aGuiComputedValuerecord 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.Returns the value of theinheritedFromIdrecord component.Returns the value of thematchedRulerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
GuiComputedValue
public GuiComputedValue(T value, GuiPropertySource source, GuiMatchedRule matchedRule, String inheritedFromId) Creates an instance of aGuiComputedValuerecord class.- Parameters:
value- the value for thevaluerecord componentsource- the value for thesourcerecord componentmatchedRule- the value for thematchedRulerecord componentinheritedFromId- the value for theinheritedFromIdrecord 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 withObjects::equals(Object,Object). -
value
-
source
-
matchedRule
Returns the value of thematchedRulerecord component.- Returns:
- the value of the
matchedRulerecord component
-
inheritedFromId
Returns the value of theinheritedFromIdrecord component.- Returns:
- the value of the
inheritedFromIdrecord component
-