Class TextDispatcher<MSG,RECEIVER,SELF extends TextDispatcher<MSG,RECEIVER,SELF>>
- java.lang.Object
-
- cc.carm.lib.configuration.value.text.function.ContentHandler<RECEIVER,SELF>
-
- cc.carm.lib.configuration.value.text.function.TextParser<RECEIVER,SELF>
-
- cc.carm.lib.configuration.value.text.function.TextCompiler<MSG,RECEIVER,SELF>
-
- cc.carm.lib.configuration.value.text.function.TextDispatcher<MSG,RECEIVER,SELF>
-
- All Implemented Interfaces:
Insertable<RECEIVER,SELF>,Replaceable<RECEIVER,SELF>
- Direct Known Subclasses:
PreparedText
public abstract class TextDispatcher<MSG,RECEIVER,SELF extends TextDispatcher<MSG,RECEIVER,SELF>> extends TextCompiler<MSG,RECEIVER,SELF>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>>dispatcher-
Fields inherited from class cc.carm.lib.configuration.value.text.function.TextCompiler
compiler
-
Fields inherited from class cc.carm.lib.configuration.value.text.function.ContentHandler
disableInsertion, inserters, insertion, lineSeparator, paramReplacer, params, parser, replacers
-
-
Constructor Summary
Constructors Constructor Description TextDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELFdispatcher(@NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>> dispatcher)Set the dispatcher to send the message to the receivervoidto(@NotNull java.lang.Iterable<? extends RECEIVER> receivers)Dispatch the message to the receivervoidto(@NotNull java.util.function.Supplier<java.lang.Iterable<? extends RECEIVER>> receivers)Dispatch the message to the receivervoidto(@NotNull RECEIVER... receivers)Dispatch the message to the receiver-
Methods inherited from class cc.carm.lib.configuration.value.text.function.TextCompiler
compile, compileLine, compiler
-
Methods inherited from class cc.carm.lib.configuration.value.text.function.TextParser
handle, parse, parse, parseLine, parseLine, texts
-
Methods inherited from class cc.carm.lib.configuration.value.text.function.ContentHandler
buildParams, disableInsertion, enableInsertion, getInsertion, handle, insert, inserter, inserters, inserting, lineSeparator, noneInsertion, paramReplacer, params, parse, parser, placeholder, placeholders, placeholders, placeholders, removeInsert, replacer, replacers, self, setPlaceholders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.configuration.value.text.function.inserter.Insertable
insert, insert, insert
-
Methods inherited from interface cc.carm.lib.configuration.value.text.function.replacer.Replaceable
applyReplacements, replace, replace, replace, replace, replace, replace, replace, replacer
-
-
-
-
Method Detail
-
dispatcher
public SELF dispatcher(@NotNull @NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>> dispatcher)
Set the dispatcher to send the message to the receiver- Parameters:
dispatcher- the dispatcher- Returns:
TextDispatcher
-
to
@SafeVarargs public final void to(@NotNull @NotNull RECEIVER... receivers)Dispatch the message to the receiver- Parameters:
receivers- the receivers
-
to
public void to(@NotNull @NotNull java.lang.Iterable<? extends RECEIVER> receivers)Dispatch the message to the receiver- Parameters:
receivers- the receivers
-
to
public void to(@NotNull @NotNull java.util.function.Supplier<java.lang.Iterable<? extends RECEIVER>> receivers)Dispatch the message to the receiver- Parameters:
receivers- the receivers
-
-