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 java.lang.Object implements MessageBuilder.SplitPolicy
DefaultMessageBuilder.SplitPolicy
implementation. Splits on a specifiedCharSequence
.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextMessage(int currentBeginIndex, MessageBuilder builder)
Calculates the endIndex for the nextMessage
.
-
-
-
Method Detail
-
nextMessage
public int nextMessage(int currentBeginIndex, MessageBuilder builder)
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
-
-