Record Class Implementation.MiddlewareContainer
java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.extension.Implementation.MiddlewareContainer
- Record Components:
priority- thePrioritywith which theMiddlewareshould be registeredmiddleware- theMiddlewareimplementation
- All Implemented Interfaces:
Implementation.ExtensionProvidable,Implementation.ProvidableContainer
- Enclosing class:
Implementation<T extends Implementation.ExtensionProvidable>
public static record Implementation.MiddlewareContainer(Priority priority, Middleware middleware)
extends Record
implements Implementation.ProvidableContainer
A container type for providing
Middlewares.-
Constructor Summary
ConstructorsConstructorDescriptionMiddlewareContainer(Priority priority, Middleware middleware) Creates an instance of aMiddlewareContainerrecord 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 themiddlewarerecord component.priority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MiddlewareContainer
Creates an instance of aMiddlewareContainerrecord class.- Parameters:
priority- the value for thepriorityrecord componentmiddleware- the value for themiddlewarerecord 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). -
priority
-
middleware
Returns the value of themiddlewarerecord component.- Returns:
- the value of the
middlewarerecord component
-