|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.SimpleSetFormat<E>
E
- the type of element.public class SimpleSetFormat<E>
This interface is used to wrap ListFormat
objects as SimpleFormat
objects.
Constructor Summary | |
---|---|
SimpleSetFormat(LinkedHashSetFormat<E> setFormat)
Constructs a new simple set format from the provided set format. |
Method Summary | |
---|---|
java.lang.String |
format(java.util.Set<E> set)
Returns a formatted string representation of the provided set. |
Formatter<E> |
getElementFormatter()
Returns the formatter for the elements of this set format. |
Parser<E> |
getElementParser()
Returns the parser for the elements of this set format. |
LinkedHashSetFormat<E> |
getSetFormat()
Returns the underlying set format. |
java.util.Set<E> |
parse(java.lang.String set)
Parses the provided string and returns its corresponding collection of elements as a set. |
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 SimpleSetFormat(LinkedHashSetFormat<E> setFormat)
setFormat
- the set format to be wrapped.Method Detail |
---|
public java.lang.String format(java.util.Set<E> set)
set
- the set to be formatted.
public java.util.Set<E> parse(java.lang.String set)
parse
in interface Parser<java.util.Set<E>>
set
- the string to be parsed.
public LinkedHashSetFormat<E> getSetFormat()
public Formatter<E> getElementFormatter()
public Parser<E> getElementParser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |