Package org.onosproject.ui.table.cell
Class HostLocationFormatter
- java.lang.Object
-
- org.onosproject.ui.table.cell.AbstractCellFormatter
-
- org.onosproject.ui.table.cell.HostLocationFormatter
-
- All Implemented Interfaces:
CellFormatter
public final class HostLocationFormatter extends AbstractCellFormatter
Formats a host location as "(device-id)/(port)".
-
-
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 java.lang.String
nonNullFormat(java.lang.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 java.lang.String nonNullFormat(java.lang.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
-
-