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
ConstructorsConstructorDescriptionActionDescription(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 aActionDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliesTorecord component.booleanclazz()Returns the value of theclazzrecord component.Returns the value of thedescriptionrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theguiproviderrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceCreatorrecord component.booleannewInst()final StringtoString()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 aActionDescriptionrecord class.- Parameters:
clazz- the value for theclazzrecord componentappliesTo- the value for theappliesTorecord componentdescription- the value for thedescriptionrecord componentinstanceCreator- the value for theinstanceCreatorrecord componentguiprovider- the value for theguiproviderrecord componentenabled- the value for theenabledrecord 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 theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
appliesTo
Returns the value of theappliesTorecord component.- Returns:
- the value of the
appliesTorecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
instanceCreator
Returns the value of theinstanceCreatorrecord component.- Returns:
- the value of the
instanceCreatorrecord component
-
guiprovider
Returns the value of theguiproviderrecord component.- Returns:
- the value of the
guiproviderrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-