|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the type of element.public interface LinkedHashSetFormat<E>
This interface is used to represent LinkedHashSet
formats. Ideally, this interface would represent the format
of ordered sets, without reference to their implementation
details; but unfortunately, the only type of ordered set
in Java is the LinkedHashSet
.
Method Summary | |
---|---|
java.lang.String |
format(java.util.Set<? extends 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. |
java.util.LinkedHashSet<E> |
parse(java.lang.String set)
Parses the provided string and returns its corresponding collection of elements as a LinkedHashSet . |
Methods inherited from interface sbrt.shell.text.Formatter |
---|
format |
Method Detail |
---|
java.lang.String format(java.util.Set<? extends E> set)
set
- the set to be formatted.
java.util.LinkedHashSet<E> parse(java.lang.String set)
LinkedHashSet
.
parse
in interface Parser<java.util.LinkedHashSet<E>>
set
- 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 |