public class DefaultItemFormat<E> extends java.lang.Object implements ItemFormat<E>
ItemFormat that converts an element by
calling toString() on it. If the element is null,
by default, the empty string is returned, but another default value can be
specified.DefaultItemFormat(String)| Constructor and Description |
|---|
DefaultItemFormat()
Default constructor which uses the empty string as representation for
null elements. |
DefaultItemFormat(java.lang.String valueForNullElement)
Constructor which takes a default value for representing a
null element. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(E element)
Converts a list element to a string.
|
public DefaultItemFormat()
null elements.public DefaultItemFormat(java.lang.String valueForNullElement)
null element.valueForNullElement - string value to be used for a null elementpublic java.lang.String format(E element)
ItemFormatformat in interface ItemFormat<E>element - the element to convertGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2017-07-26 15:03