Converting or Specifying.
Converting and Functioning
interfaces and defines the common modifiers that can be applied to these.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: The currentConverting object so that additional calls
can be chained.The default value. defVal)The default value to use when the object cannot be converted or in case
of conversion from a |
| public T | Returns: The currentConverting object so that additional calls
can be chained.When converting between map-like types use case-insensitive mapping of keys. |
| public T | |
| public T | Returns: The currentConverting object so that additional calls
can be chained.Treat the source object as a JavaBean. |
| public T | Returns: The currentConverting object so that additional calls
can be chained.Treat the source object as a DTO even if the source object has methods or is otherwise not recognized as a DTO. |
| public T | |
| public T | Returns: The currentConverting object so that additional calls
can be chained.Treat the target object as a JavaBean. |
| public T | Returns: The currentConverting object so that additional calls
can be chained.Treat the target object as a DTO even if it has methods or is otherwise not recognized as a DTO. |
| public T | Returns: The currentConverting object so that additional calls
can be chained.Return a live view over the backing object that reflects any changes to the original object. |
| defaultValue | back to summary |
|---|---|
| public T defaultValue(Object defVal) The default value to use when the object cannot be converted or in case
of conversion from a
| |
| keysIgnoreCase | back to summary |
|---|---|
| public T keysIgnoreCase() When converting between map-like types use case-insensitive mapping of keys.
| |
| sourceAs | back to summary |
|---|---|
| public T sourceAs(Class<?> cls) Treat the source object as the specified class. This can be used to disambiguate a type if it implements multiple interfaces or extends multiple classes.
| |
| sourceAsBean | back to summary |
|---|---|
| public T sourceAsBean() Treat the source object as a JavaBean. By default objects will not be treated as JavaBeans, this has to be specified using this method.
| |
| sourceAsDTO | back to summary |
|---|---|
| public T sourceAsDTO() Treat the source object as a DTO even if the source object has methods or is otherwise not recognized as a DTO.
| |
| targetAs | back to summary |
|---|---|
| public T targetAs(Class<?> cls) Treat the target object as the specified class. This can be used to disambiguate a type if it implements multiple interfaces or extends multiple classes.
| |
| targetAsBean | back to summary |
|---|---|
| public T targetAsBean() Treat the target object as a JavaBean. By default objects will not be treated as JavaBeans, this has to be specified using this method.
| |
| targetAsDTO | back to summary |
|---|---|
| public T targetAsDTO() Treat the target object as a DTO even if it has methods or is otherwise not recognized as a DTO.
| |
| view | back to summary |
|---|---|
| public T view() Return a live view over the backing object that reflects any changes to
the original object. This is only possible with conversions to
| |