public class IlvSimpleListFormat extends IlvListFormat
Note: This class may be obsoleted once the corresponding support is added to the International Components for Unicode library.
LONG, SHORT
Constructor and Description |
---|
IlvSimpleListFormat(Locale locale)
Creates a list formatter, based on a separator string suitable for the
given locale.
|
IlvSimpleListFormat(String separator)
Creates a list formatter, based on the given separator string.
|
IlvSimpleListFormat(String separator,
String terminator,
String zeroElementsString)
Creates a list formatter, based on the given separator and terminator
strings.
|
Modifier and Type | Method and Description |
---|---|
String |
format(String[] elements)
Returns the string that expresses the given elements, in order.
|
String |
getSeparator()
Returns the string that separates two elements.
|
String |
getTerminator()
Returns the string that terminates the list.
|
String |
getZeroElementsString()
Returns the string that represents a list of zero elements.
|
getInstance, getInstance, getInstance
public IlvSimpleListFormat(Locale locale)
public IlvSimpleListFormat(String separator)
separator
- The string to be used to separate two elements.public IlvSimpleListFormat(String separator, String terminator, String zeroElementsString)
separator
- The string to be used to separate two elements.terminator
- The string that terminates the list.zeroElementsString
- The string that represents a list of zero
elements.public String getSeparator()
public String getTerminator()
public String getZeroElementsString()
public String format(String[] elements)
format
in class IlvListFormat
elements
- An array of strings.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.