- All Implemented Interfaces:
Serializable,Comparable<WrapBehaviour>,java.lang.constant.Constable
What to do when line length is exceeded.
- Author:
- avl42
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrap at any character boundaries.Don't wrap lines automatically, but honor explicit line-feeds.Never ever leave current line.Only wrap at word boundaries. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanautoWrap()booleanstatic WrapBehaviourReturns the enum constant of this type with the specified name.static WrapBehaviour[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SINGLE_LINE
Never ever leave current line. -
CLIP
Don't wrap lines automatically, but honor explicit line-feeds. -
CHAR
Wrap at any character boundaries. -
WORD
Only wrap at word boundaries. If a single word exceeds line length, it will still be broken to line length.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
allowLineFeed
public boolean allowLineFeed() -
autoWrap
public boolean autoWrap() -
keepWords
public boolean keepWords()
-