Class ChatPaginator.Builder<T>
java.lang.Object
com.stardevllc.starmclib.paginator.ChatPaginator.Builder<T>
- All Implemented Interfaces:
com.stardevllc.starlib.objects.builder.IBuilder<ChatPaginator<T>,,ChatPaginator.Builder<T>> Cloneable
- Enclosing class:
ChatPaginator<T>
public static class ChatPaginator.Builder<T>
extends Object
implements com.stardevllc.starlib.objects.builder.IBuilder<ChatPaginator<T>,ChatPaginator.Builder<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.stardevllc.starlib.objects.builder.IBuilder
com.stardevllc.starlib.objects.builder.IBuilder.Container<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.stardevllc.starlib.converter.string.StringConverter<T> protected Collection<T> protected intprotected BiFunction<ChatPaginator<T>, Actor, String> protected BiFunction<ChatPaginator<T>, Actor, String> protected Stringprotected final Set<ChatPaginator.Vars> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()clone()elements(Collection<T> elements) elementsPerPage(int elementsPerPage) footer(BiFunction<ChatPaginator<T>, Actor, String> footer) header(BiFunction<ChatPaginator<T>, Actor, String> header) lineFormat(String lineFormat) supportedVars(ChatPaginator.Vars var, ChatPaginator.Vars... vars) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stardevllc.starlib.objects.builder.IBuilder
getPostbuildConsumer, getPrebuildConsumer, postBuild, preBuild, self
-
Field Details
-
header
-
lineFormat
-
elements
-
elementsPerPage
protected int elementsPerPage -
converter
-
supportedVars
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
header
-
lineFormat
-
elements
-
elementsPerPage
-
converter
public ChatPaginator.Builder<T> converter(com.stardevllc.starlib.converter.string.StringConverter<T> converter) -
supportedVars
-
build
- Specified by:
buildin interfacecom.stardevllc.starlib.objects.builder.IBuilder<ChatPaginator<T>,ChatPaginator.Builder<T>>
-
clone
- Specified by:
clonein interfacecom.stardevllc.starlib.objects.builder.IBuilder<ChatPaginator<T>,ChatPaginator.Builder<T>> - Overrides:
clonein classObject
-