Record Class ConditionDescription<X extends Condition<Y>,Y>
java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.triggers.easytriggers.model.ConditionDescription<X,Y>
-
Constructor Summary
ConstructorDescriptionConditionDescription
(Class<X> clazz, Class<Y> appliesTo, String description, Supplier<X> instanceCreator, BiFunction<X, HasMutableConditions<?>, Component> guiprovider) Creates an instance of aConditionDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliesTo
record component.boolean
clazz()
Returns the value of theclazz
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theguiprovider
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinstanceCreator
record component.newInst()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConditionDescription
public ConditionDescription(Class<X> clazz, Class<Y> appliesTo, String description, Supplier<X> instanceCreator, BiFunction<X, HasMutableConditions<?>, Component> guiprovider) Creates an instance of aConditionDescription
record class.- Parameters:
clazz
- the value for theclazz
record componentappliesTo
- the value for theappliesTo
record componentdescription
- the value for thedescription
record componentinstanceCreator
- the value for theinstanceCreator
record componentguiprovider
- the value for theguiprovider
record component
-
-
Method Details
-
appliesTo
-
newInst
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
clazz
Returns the value of theclazz
record component.- Returns:
- the value of the
clazz
record component
-
appliesTo
Returns the value of theappliesTo
record component.- Returns:
- the value of the
appliesTo
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
instanceCreator
Returns the value of theinstanceCreator
record component.- Returns:
- the value of the
instanceCreator
record component
-
guiprovider
Returns the value of theguiprovider
record component.- Returns:
- the value of the
guiprovider
record component
-