Javolution 6.0.0 java
|
Public Member Functions | |
Appendable | format (Index obj, Appendable dest) throws IOException |
Index | parse (CharSequence csq, Cursor cursor) throws IllegalArgumentException |
T | parse (CharSequence csq) throws IllegalArgumentException |
abstract Appendable | format (T obj, Appendable dest) throws IOException |
TextBuilder | format (T obj, TextBuilder dest) |
String | format (T obj) |
Default text format for indices (decimal value representation).
Definition at line 49 of file Index.java.
Appendable javolution.util.Index.Decimal.format | ( | Index | obj, |
Appendable | dest | ||
) | throws IOException |
Definition at line 52 of file Index.java.
References javolution.text.TypeFormat.format().
|
inherited |
Convenience method to format the specified object to a String.
obj | the object to format. |
Definition at line 121 of file TextFormat.java.
|
abstractinherited |
Formats the specified object into an Appendable
obj | the object to format. |
dest | the appendable destination. |
Appendable
. Referenced by javolution.text.TextBuilder.append(), javolution.text.TextFormat< FastCollection<?> >.format(), and javolution.util.FastCollection< E >.Format.format().
|
inherited |
Convenience method to format the specified object to a TextBuilder; unlike the abstract format method, this method does not throw IOException.
obj | the object to format. |
dest | the appendable destination. |
TextBuilder
. Definition at line 106 of file TextFormat.java.
|
inherited |
Convenience method to parse the whole character sequence; if there are unread extraneous characters after parsing then an exception is raised.
csq | the CharSequence to parse from the first character to the last. |
IllegalArgumentException | if the syntax of the specified character sequence is incorrect or if there are extraneous characters at the end not parsed. |
Definition at line 89 of file TextFormat.java.
Index javolution.util.Index.Decimal.parse | ( | CharSequence | csq, |
Cursor | cursor | ||
) | throws IllegalArgumentException |
Reads a portion of the specified 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.
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. |
UnsupportedOperationException | if parsing is not supported. |
Reimplemented from javolution.text.TextFormat< T >.
Definition at line 57 of file Index.java.
References javolution.text.TypeFormat.parseInt(), and javolution.util.Index.valueOf().