public static enum Breaker.BreakTextResult extends Enum<Breaker.BreakTextResult>
| Enum Constant and Description |
|---|
CHAR_UNBREAKABLE_BUT_CONSUMED
Not a single char fitted, but we consumed one character anyway.
|
CONTINUE_CHAR_BREAKING_ON_NL
In char breaking mode, need a newline before continuing.
|
CONTINUE_WORD_BREAKING_ON_NL
In word breaking mode, need a newline before continuing.
|
DANGER_RECONSUME_CHAR_ON_NL
DANGER: Last char did not fit and we are directing the
parent method to reconsume char on a newline.
|
DANGER_RECONSUME_WORD_ON_NL
DANGER: Last word did not fit and we are directing the
parent method to reconsume word on a newline.
|
FINISHED
Has completely consumed the string.
|
WORD_UNBREAKABLE_BUT_CONSUMED
Not a single word fitted, but we consumed a word anyway.
|
| Modifier and Type | Method and Description |
|---|---|
static Breaker.BreakTextResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Breaker.BreakTextResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Breaker.BreakTextResult FINISHED
public static final Breaker.BreakTextResult CONTINUE_CHAR_BREAKING_ON_NL
public static final Breaker.BreakTextResult CONTINUE_WORD_BREAKING_ON_NL
public static final Breaker.BreakTextResult CHAR_UNBREAKABLE_BUT_CONSUMED
public static final Breaker.BreakTextResult WORD_UNBREAKABLE_BUT_CONSUMED
public static final Breaker.BreakTextResult DANGER_RECONSUME_CHAR_ON_NL
public static final Breaker.BreakTextResult DANGER_RECONSUME_WORD_ON_NL
public static Breaker.BreakTextResult[] values()
for (Breaker.BreakTextResult c : Breaker.BreakTextResult.values()) System.out.println(c);
public static Breaker.BreakTextResult valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2025. All rights reserved.