Package net.dv8tion.jda.api
Class MessageBuilder.SplitPolicy.CharSequenceSplitPolicy
java.lang.Object
net.dv8tion.jda.api.MessageBuilder.SplitPolicy.CharSequenceSplitPolicy
- All Implemented Interfaces:
MessageBuilder.SplitPolicy
- Enclosing interface:
- MessageBuilder.SplitPolicy
public static class MessageBuilder.SplitPolicy.CharSequenceSplitPolicy
extends Object
implements MessageBuilder.SplitPolicy
Default
MessageBuilder.SplitPolicy
implementation. Splits on a specified CharSequence
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.MessageBuilder.SplitPolicy
MessageBuilder.SplitPolicy.CharSequenceSplitPolicy
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.MessageBuilder.SplitPolicy
ANYWHERE, NEWLINE, SPACE
-
Method Summary
Modifier and TypeMethodDescriptionint
nextMessage
(int currentBeginIndex, MessageBuilder builder) Calculates the endIndex for the nextMessage
.
-
Method Details
-
nextMessage
Description copied from interface:MessageBuilder.SplitPolicy
Calculates the endIndex for the nextMessage
.- Specified by:
nextMessage
in interfaceMessageBuilder.SplitPolicy
- Parameters:
currentBeginIndex
- the index the nextMessage
should start frombuilder
- theMessageBuilder
- Returns:
- the end Index of the next
Message
-