|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.SimpleListFormat<E>
E
- the type of element.public class SimpleListFormat<E>
This interface is used to wrap ListFormat
objects as SimpleFormat
objects.
Constructor Summary | |
---|---|
SimpleListFormat(ListFormat<E> listFormat)
Constructs a new simple list format from the provided list format. |
Method Summary | |
---|---|
java.lang.String |
format(java.util.List<E> list)
Returns a formatted string representation of the provided list. |
Formatter<E> |
getElementFormatter()
Returns the formatter for the elements of this list format. |
Parser<E> |
getElementParser()
Returns the parser for the elements of this list format. |
ListFormat<E> |
getListFormat()
Returns the underlying list format. |
java.util.List<E> |
parse(java.lang.String list)
Parses the provided string and returns its corresponding collection of elements as a list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sbrt.shell.text.Formatter |
---|
format |
Constructor Detail |
---|
public SimpleListFormat(ListFormat<E> listFormat)
listFormat
- the list format to be wrapped.Method Detail |
---|
public java.lang.String format(java.util.List<E> list)
list
- the list to be formatted.
public java.util.List<E> parse(java.lang.String list)
parse
in interface Parser<java.util.List<E>>
list
- the string to be parsed.
public ListFormat<E> getListFormat()
public Formatter<E> getElementFormatter()
public Parser<E> getElementParser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |