Package io.manebot.command.response
Class CommandListResponse.Builder<T>
- java.lang.Object
-
- io.manebot.command.response.CommandListResponse.Builder<T>
-
- Enclosing class:
- CommandListResponse<T>
public abstract static class CommandListResponse.Builder<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description abstract CommandListResponse<T>build()CommandListResponse.ListAccessor<T>createListAccessor()CommandListResponse.Builder<T>direct(java.util.List<T> list)CommandListResponse.Builder<T>elementsPerPage(int elementsPerPage)intgetElementsPerPage()longgetPage()CommandListResponse.ListElementFormatter<T>getResponder()longgetTotalElements()CommandListResponse.Builder<T>page(long page)CommandListResponse.Builder<T>responder(CommandListResponse.ListElementFormatter<T> responder)CommandListResponse.Builder<T>totalElements(long totalElements)CommandListResponse.Builder<T>virtual(java.util.List<T> list)
-
-
-
Method Detail
-
getPage
public long getPage()
-
page
public CommandListResponse.Builder<T> page(long page)
-
getTotalElements
public long getTotalElements()
-
totalElements
public CommandListResponse.Builder<T> totalElements(long totalElements)
-
getElementsPerPage
public int getElementsPerPage()
-
elementsPerPage
public CommandListResponse.Builder<T> elementsPerPage(int elementsPerPage)
-
direct
public CommandListResponse.Builder<T> direct(java.util.List<T> list)
-
virtual
public CommandListResponse.Builder<T> virtual(java.util.List<T> list)
-
getResponder
public CommandListResponse.ListElementFormatter<T> getResponder()
-
responder
public CommandListResponse.Builder<T> responder(CommandListResponse.ListElementFormatter<T> responder)
-
createListAccessor
public CommandListResponse.ListAccessor<T> createListAccessor()
-
build
public abstract CommandListResponse<T> build()
-
-