Record Class Selector.Condition.Component
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Condition.Component
- All Implemented Interfaces:
Selector.Condition.Property
- Enclosing class:
Selector.Condition
public static record Selector.Condition.Component(ValueComponent component)
extends Record
implements Selector.Condition.Property
-
Constructor Summary
ConstructorsConstructorDescriptionComponent(ValueComponent component) Creates an instance of aComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Component
Creates an instance of aComponentrecord class.- Parameters:
component- the value for thecomponentrecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.Condition.Property
-
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). -
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-