| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Constructor | |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements abstract com. Implements com. |
| public Object | fromString(String
the String with the single value of the Object str)Implements abstract com. Implements com. |
| public String | toString(Object
the Object to be converted obj)Overrides com. Implements com. |
| clazz | back to summary |
|---|---|
| private final Class<T> clazz | |
| ctor | back to summary |
|---|---|
| private final Constructor<T> ctor | |
| STRING_PARAMETER | back to summary |
|---|---|
| private static final Class<T>[] STRING_PARAMETER | |
| ToStringConverter | back to summary |
|---|---|
| public ToStringConverter(Class<T> clazz) throws NoSuchMethodException | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements abstract com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| fromString | back to summary |
|---|---|
| public Object fromString(String str) Implements abstract com. Implements com. Doc from com. Unmarshals an Object from its single value representation. | |
| toString | back to summary |
|---|---|
| public String toString(Object obj) Overrides com. Implements com. Doc from com. Marshals an Object into a single value representation. | |