Record Class GuiSpecificity
java.lang.Object
java.lang.Record
com.render.api.gui.style.GuiSpecificity
- Record Components:
ids- ID countclasses- class, attribute, and pseudo-class counttypes- component-type and pseudo-element count
- All Implemented Interfaces:
Comparable<GuiSpecificity>
public record GuiSpecificity(int ids, int classes, int types)
extends Record
implements Comparable<GuiSpecificity>
Selector specificity represented as ID, class/state/attribute, and type counts.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiSpecificity(int ids, int classes, int types) Creates an instance of aGuiSpecificityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclasses()Returns the value of theclassesrecord component.intcompareTo(GuiSpecificity other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intids()Returns the value of theidsrecord component.plus(GuiSpecificity other) Adds two specificity values.toString()Returns a string representation of this record class.inttypes()Returns the value of thetypesrecord component.
-
Constructor Details
-
GuiSpecificity
-
-
Method Details
-
plus
Adds two specificity values.- Parameters:
other- other value- Returns:
- sum
-
compareTo
- Specified by:
compareToin interfaceComparable<GuiSpecificity>
-
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. -
ids
-
classes
-
types
-