public class InvalidHelpPageException
extends java.lang.RuntimeException
Help.CommandList.paginate(int, int)| Constructor and Description |
|---|
InvalidHelpPageException(java.util.List<ExecutableCommand<A>> commands,
int page,
int elementsPerPage,
int numberOfPages) |
| Modifier and Type | Method and Description |
|---|---|
<A extends CommandActor> |
commands()
Returns all the commands that belong to this list.
|
int |
elementsPerPage()
Returns the elements to include in each page
|
@Range(from=1L,to=2147483647L) int |
numberOfPages()
Returns the number of pages this list would generate if
it were to be split pages where each page contains
elementsPerPage()
elements. |
int |
page()
Returns the page number
|
public InvalidHelpPageException(java.util.List<ExecutableCommand<A>> commands, int page, int elementsPerPage, int numberOfPages)
public int elementsPerPage()
public int page()
public @Range(from=1L,to=2147483647L) int numberOfPages()
elementsPerPage()
elements.@NotNull public <A extends CommandActor> @NotNull @Unmodifiable java.util.List<ExecutableCommand<A>> commands()
Note that the returned list is immutable.