|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the type of element.public interface ListFormat<E>
This interface is used to represent list formats.
Method Summary | |
---|---|
java.lang.String |
format(java.util.List<? extends 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. |
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 interface sbrt.shell.text.Formatter |
---|
format |
Method Detail |
---|
java.lang.String format(java.util.List<? extends E> list)
list
- the list to be formatted.
java.util.List<E> parse(java.lang.String list)
parse
in interface Parser<java.util.List<E>>
list
- the string to be parsed.
Formatter<E> getElementFormatter()
Parser<E> getElementParser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |