Record Class GuiceExtensionData
java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.guice.GuiceExtensionData
- Record Components:
providedInjector- TheInjectorto be used instead of creating one
- All Implemented Interfaces:
Extension.Data
public record GuiceExtensionData(Injector providedInjector)
extends Record
implements Extension.Data
Custom
Extension.Data to be used to configure this extension.-
Constructor Summary
ConstructorsConstructorDescriptionGuiceExtensionData(Injector providedInjector) Creates an instance of aGuiceExtensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprovidedInjectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiceExtensionData
Creates an instance of aGuiceExtensionDatarecord class.- Parameters:
providedInjector- the value for theprovidedInjectorrecord component
-
-
Method Details
-
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). -
providedInjector
Returns the value of theprovidedInjectorrecord component.- Returns:
- the value of the
providedInjectorrecord component
-