- All Implemented Interfaces:
Serializable
,Comparable<TruncateMode>
,Constable
The
TruncateMode
specifies for according algorithms on how to
truncate a sequence.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTruncate the head (left hand side) of a sequence.Truncate both head and tail (left and right hand side) of a sequence.Truncate the tail (right hand side) of a sequence. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isHead()
Returns true in case the head is to be truncated.boolean
isTail()
Returns true in case the tail is to be truncated.static TruncateMode
Returns the enum constant of this class with the specified name.static TruncateMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEAD
Truncate the head (left hand side) of a sequence. -
HEAD_AND_TAIL
Truncate both head and tail (left and right hand side) of a sequence. -
TAIL
Truncate the tail (right hand side) of a sequence.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isHead
public boolean isHead()Returns true in case the head is to be truncated.- Returns:
- True in case the left hand side is to be truncated.
-
isTail
public boolean isTail()Returns true in case the tail is to be truncated.- Returns:
- True in case the right hand side is to be truncated.
-