- All Implemented Interfaces:
Serializable
,Comparable<TableStatus>
,Constable
The
TableStatus
provides the status of the table, e.g. whether it has
begin printing the header, whether it has continued to print a row or whether
it has printed the tail. The TableStatus
is required by a
TablePrinter
(TableBuilder
) to determine whether to do
additional table decoration for a print operation or to fail that operation
as of an illegal state exception. As far as possible an illegal state
exception is to be tried to be prevented by decorating the table
automatically by an operation as of the current TableStatus
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe header's top line has been printed.A header columns line has been printed.The header's bottom line has been printed.Nothing as been printed yet.A row's top line has been printed.A row columns line has been printed.The row's bottom line has been printed, usually when joining the table with another table. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableStatus
Returns the enum constant of this class with the specified name.static TableStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Nothing as been printed yet. -
HEADER_BEGIN
The header's top line has been printed. -
HEADER_CONTINUE
A header columns line has been printed. -
HEADER_END
The header's bottom line has been printed. -
ROW_BEGIN
A row's top line has been printed. -
ROW_CONTINUE
A row columns line has been printed. -
ROW_END
The row's bottom line has been printed, usually when joining the table with another table. -
TAIL
-
-
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
-