Package dev.tobee.telegram.model
Record Class ReplyKeyboardRemove
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.ReplyKeyboardRemove
- All Implemented Interfaces:
ReplyMarkup
public record ReplyKeyboardRemove(Boolean removeKeyboard, Optional<Boolean> selective)
extends Record
implements ReplyMarkup
-
Constructor Summary
ConstructorsConstructorDescriptionReplyKeyboardRemove(Boolean removeKeyboard, Optional<Boolean> selective)Creates an instance of aReplyKeyboardRemoverecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theremoveKeyboardrecord component.Returns the value of theselectiverecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ReplyKeyboardRemove
Creates an instance of aReplyKeyboardRemoverecord class.- Parameters:
removeKeyboard- the value for theremoveKeyboardrecord componentselective- the value for theselectiverecord 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). -
removeKeyboard
Returns the value of theremoveKeyboardrecord component.- Returns:
- the value of the
removeKeyboardrecord component
-
selective
Returns the value of theselectiverecord component.- Returns:
- the value of the
selectiverecord component
-