Record Class EntryContext<Event extends ComponentInteraction, Component extends ActionComponent>
java.lang.Object
java.lang.Record
de.chojo.jdautil.menus.EntryContext<Event, Component>
public record EntryContext<Event extends ComponentInteraction, Component extends ActionComponent>(Event extends ComponentInteraction event, MenuEntry<Component extends ActionComponent, Event extends ComponentInteraction> entry, MenuContainer container)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntryContext(Event event, MenuEntry<Component, Event> entry, MenuContainer container) Creates an instance of aEntryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerrecord component.entry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.voidrefresh()voidvoidvoidrefresh(MessageEmbed... message) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
refresh
public void refresh() -
refresh
-
refresh
-
refresh
-
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). -
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
entry
-
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-