Class KeyboardRow
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<KeyboardButton>
org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardRow
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<KeyboardButton>,Collection<KeyboardButton>,List<KeyboardButton>,RandomAccess,Validable
- Version:
- 1.0 Row for ReplyKeyBoardMarkup
- Author:
- Ruben Bermudez
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionKeyboardRow(int initialCapacity) KeyboardRow(Collection<? extends KeyboardButton> c) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidbooleanintintlastIndexOf(String text) booleanvoidvalidate()Validates that mandatory fields are filled and optional objectsMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractList
equals, hashCodeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, streamMethods inherited from interface java.util.List
containsAll, equals, hashCode
-
Constructor Details
-
KeyboardRow
public KeyboardRow(int initialCapacity) -
KeyboardRow
public KeyboardRow() -
KeyboardRow
-
-
Method Details
-
add
-
add
-
addAll
-
contains
-
lastIndexOf
-
indexOf
-
set
-
remove
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-