@Named public class BlockSplitInNumber extends Object implements TextChunkCouncillor
| Constructor and Description |
|---|
BlockSplitInNumber() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasVeto(String text,
int splitAtIndex)
Vote for or against the split of a text.
|
public boolean hasVeto(String text, int splitAtIndex)
TextChunkCouncillorText will contains only parts that not have been splitted yet.
hasVeto in interface TextChunkCouncillortext - The text left to split.splitAtIndex - The index to split the text (never 0)true if the character on that index is not allowed
to be in a new line, false if the character on that
index is allowed to be in the next line.Copyright © 2017. All rights reserved.