Record Class Selector.Condition.HasComponent
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Condition.HasComponent
- All Implemented Interfaces:
Selector.Condition.Property
- Enclosing class:
Selector.Condition
public static record Selector.Condition.HasComponent(ContainedComponent component, boolean ignoreDefault)
extends Record
implements Selector.Condition.Property
-
Constructor Summary
ConstructorsConstructorDescriptionHasComponent(ContainedComponent component, boolean ignoreDefault) Creates an instance of aHasComponentrecord 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()booleanReturns the value of theignoreDefaultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HasComponent
Creates an instance of aHasComponentrecord class.- Parameters:
component- the value for thecomponentrecord componentignoreDefault- the value for theignoreDefaultrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
ignoreDefault
public boolean ignoreDefault()Returns the value of theignoreDefaultrecord component.- Returns:
- the value of the
ignoreDefaultrecord component
-