Record Class InlineKeyboardMarkup
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineKeyboardMarkup
- All Implemented Interfaces:
Serializable,ApiResult,ReplyKeyboard
public record InlineKeyboardMarkup(@NotNull InlineKeyboardButton[][] keyboard)
extends Record
implements ReplyKeyboard
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardMarkup(@NotNull InlineKeyboardButton[][] keyboard) Creates an instance of aInlineKeyboardMarkuprecord 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.@NotNull InlineKeyboardButton[][]keyboard()Returns the value of thekeyboardrecord component.lombok.BuilderofBuilder(InlineKeyboardButton[][] keyboard) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InlineKeyboardMarkup
Creates an instance of aInlineKeyboardMarkuprecord class.- Parameters:
keyboard- the value for thekeyboardrecord component
-
-
Method Details
-
ofBuilder
-
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). -
keyboard
Returns the value of thekeyboardrecord component.- Returns:
- the value of the
keyboardrecord component
-