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)
ItemFormat
format
in interface ItemFormat<E>
element
- the element to convertGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by builder at 2016-02-12 23:17