|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.export.Stringifier<T>
public abstract class Stringifier<T>
Converts objects to and from strings.
| Constructor Summary | |
|---|---|
Stringifier()
|
|
| Method Summary | |
|---|---|
abstract T |
fromString(String string)
Converts a string to an object. |
static Stringifier |
getStringifier(Class<?> clazz)
Returns the stringifier, if any, for the specified class. |
abstract String |
toString(T value)
Converts an object to a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stringifier()
| Method Detail |
|---|
public static Stringifier getStringifier(Class<?> clazz)
public abstract String toString(T value)
public abstract T fromString(String string)
throws Exception
null rather than throwing an exception.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||