Package org.onosproject.ui.table.cell
Class HexLongFormatter
- java.lang.Object
-
- org.onosproject.ui.table.cell.AbstractCellFormatter
-
- org.onosproject.ui.table.cell.HexLongFormatter
-
- All Implemented Interfaces:
CellFormatter
public final class HexLongFormatter extends AbstractCellFormatter
Formats long values as hex strings with a "0x" prefix.
-
-
Field Summary
Fields Modifier and Type Field Description static CellFormatter
INSTANCE
An instance of this class.-
Fields inherited from class org.onosproject.ui.table.cell.AbstractCellFormatter
EMPTY, OX, QUERY, SLASH, SPACE, UNDERSCORE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
nonNullFormat(Object value)
Formats the specified value into a string appropriate for displaying in a table cell.-
Methods inherited from class org.onosproject.ui.table.cell.AbstractCellFormatter
format
-
-
-
-
Field Detail
-
INSTANCE
public static final CellFormatter INSTANCE
An instance of this class.
-
-
Method Detail
-
nonNullFormat
protected String nonNullFormat(Object value)
Description copied from class:AbstractCellFormatter
Formats the specified value into a string appropriate for displaying in a table cell. Note that value is guaranteed to be non-null.- Specified by:
nonNullFormat
in classAbstractCellFormatter
- Parameters:
value
- the value- Returns:
- the formatted string
-
-