Serializable
, Comparable<TruncateTextMode>
public enum TruncateTextMode extends Enum<TruncateTextMode>
TruncateTextMode
specifies for according algorithms on how a line
is to be stripped.Enum Constant | Description |
---|---|
LEFT |
Left stripping according to the given strip chars.
|
LEFT_AND_RIGHT |
Both left and right stripping relative to the given strip chars.
|
RIGHT |
Right stripping according to the given strip chars.
|
Modifier and Type | Method | Description |
---|---|---|
static TruncateTextMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static TruncateTextMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TruncateTextMode LEFT
public static final TruncateTextMode LEFT_AND_RIGHT
public static final TruncateTextMode RIGHT
public static TruncateTextMode[] values()
for (TruncateTextMode c : TruncateTextMode.values()) System.out.println(c);
public static TruncateTextMode 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 © 2018. All rights reserved.