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
ConstructorDescriptionKeyboardRow
(int initialCapacity) KeyboardRow
(Collection<? extends KeyboardButton> c) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
boolean
int
int
lastIndexOf
(String text) boolean
void
validate()
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, trimToSize
Methods inherited from class java.util.AbstractList
equals, hashCode
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream
Methods 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:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-