@Parallelizable public static class FastCollection.Format extends TextFormat<FastCollection<?>>
java.util.Collection
instances except that the elements themselves are written using
their TextContext
format.Constructor and Description |
---|
FastCollection.Format() |
Modifier and Type | Method and Description |
---|---|
Appendable |
format(FastCollection<?> that,
Appendable dest)
Formats the specified object into an
Appendable |
FastCollection<Object> |
parse(CharSequence csq,
Cursor cursor)
Reads a portion of the specified
CharSequence from the
specified cursor position to produce an object. |
format, format, parse
public FastCollection<Object> parse(CharSequence csq, Cursor cursor) throws IllegalArgumentException
TextFormat
CharSequence
from the
specified cursor position to produce an object. If parsing succeeds,
then the index of the cursor
argument is updated to the
index after the last character used.parse
in class TextFormat<FastCollection<?>>
csq
- the character sequence to parse.cursor
- the cursor holding the current parsing index.IllegalArgumentException
- if the syntax of the specified
character sequence is incorrect.public Appendable format(FastCollection<?> that, Appendable dest) throws IOException
TextFormat
Appendable
format
in class TextFormat<FastCollection<?>>
that
- the object to format.dest
- the appendable destination.Appendable
.IOException
Copyright © 2005-2013 Javolution. All Rights Reserved.