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