- All Implemented Interfaces:
Serializable
,Comparable<WrapBehaviour>
,java.lang.constant.Constable
What to do when line length is exceeded.
-
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. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
WrapBehaviour
(boolean allowLineFeed, boolean autoWrap, boolean keepWords) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
autoWrap()
boolean
static WrapBehaviour
Returns 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.
-
-
Field Details
-
allowLineFeed
private final boolean allowLineFeed -
autoWrap
private final boolean autoWrap -
keepWords
private final boolean keepWords
-
-
Constructor Details
-
WrapBehaviour
private WrapBehaviour(boolean allowLineFeed, boolean autoWrap, boolean keepWords)
-
-
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()
-