Record Class BotQuitGroupEvent
java.lang.Object
java.lang.Record
org.teleight.teleightbots.event.bot.group.BotQuitGroupEvent
- All Implemented Interfaces:
Event,GroupBotEvent
public record BotQuitGroupEvent(@NotNull TelegramBot bot, @NotNull User user, @NotNull Chat chat, @NotNull Update update)
extends Record
implements GroupBotEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBotQuitGroupEvent(@NotNull TelegramBot bot, @NotNull User user, @NotNull Chat chat, @NotNull Update update) Creates an instance of aBotQuitGroupEventrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull TelegramBotbot()Returns the value of thebotrecord component.@NotNull Chatchat()Returns the value of thechatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull Updateupdate()Returns the value of theupdaterecord component.@NotNull Useruser()Returns the value of theuserrecord component.
-
Constructor Details
-
BotQuitGroupEvent
public BotQuitGroupEvent(@NotNull @NotNull TelegramBot bot, @NotNull @NotNull User user, @NotNull @NotNull Chat chat, @NotNull @NotNull Update update) Creates an instance of aBotQuitGroupEventrecord class.- Parameters:
bot- the value for thebotrecord componentuser- the value for theuserrecord componentchat- the value for thechatrecord componentupdate- the value for theupdaterecord component
-
-
Method Details
-
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). -
bot
Returns the value of thebotrecord component. -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
chat
Returns the value of thechatrecord component.- Specified by:
chatin interfaceGroupBotEvent- Returns:
- the value of the
chatrecord component
-
update
Returns the value of theupdaterecord component.- Specified by:
updatein interfaceGroupBotEvent- Returns:
- the value of the
updaterecord component
-