Record Class ActionDescription<X extends Action<Y>,Y>
java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.triggers.easytriggers.model.ActionDescription<X,Y>
-
Constructor Summary
ConstructorDescriptionActionDescription
(Class<X> clazz, Class<Y> appliesTo, String description, Supplier<X> instanceCreator, BiFunction<X, HasMutableActions<?>, Component> guiprovider) ActionDescription
(Class<X> clazz, Class<Y> appliesTo, String description, Supplier<X> instanceCreator, BiFunction<X, HasMutableActions<?>, Component> guiprovider, Supplier<Boolean> enabled) Creates an instance of aActionDescription
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.enabled()
Returns the value of theenabled
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.boolean
newInst()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ActionDescription
-
ActionDescription
public ActionDescription(Class<X> clazz, Class<Y> appliesTo, String description, Supplier<X> instanceCreator, BiFunction<X, HasMutableActions<?>, Component> guiprovider, Supplier<Boolean> enabled) Creates an instance of aActionDescription
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 componentenabled
- the value for theenabled
record component
-
-
Method Details
-
appliesTo
-
newInst
-
isEnabled
public boolean isEnabled() -
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
-
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-