T
- Either Converting
or Specifying
.@ProviderType public interface Specifying<T extends Specifying<T>>
Converting
and Functioning
interfaces and defines the common modifiers that can be applied to these.Modifier and Type | Method and Description |
---|---|
T |
defaultValue(java.lang.Object defVal)
The default value to use when the object cannot be converted or in case
of conversion from a
null value. |
T |
keysIgnoreCase()
When converting between map-like types use case-insensitive mapping of
keys.
|
T |
sourceAs(java.lang.Class<?> cls)
Treat the source object as the specified class.
|
T |
sourceAsBean()
Treat the source object as a JavaBean.
|
T |
sourceAsDTO()
Treat the source object as a DTO even if the source object has methods or
is otherwise not recognized as a DTO.
|
T |
targetAs(java.lang.Class<?> cls)
Treat the target object as the specified class.
|
T |
targetAsBean()
Treat the target object as a JavaBean.
|
T |
targetAsDTO()
Treat the target object as a DTO even if it has methods or is otherwise
not recognized as a DTO.
|
T |
view()
Return a live view over the backing object that reflects any changes to
the original object.
|
T defaultValue(java.lang.Object defVal)
null
value.defVal
- The default value.Converting
object so that additional calls
can be chained.T keysIgnoreCase()
Converting
object so that additional calls
can be chained.T sourceAs(java.lang.Class<?> cls)
cls
- The class to treat the object as.Converting
object so that additional calls
can be chained.T sourceAsBean()
Converting
object so that additional calls
can be chained.T sourceAsDTO()
Converting
object so that additional calls
can be chained.T targetAs(java.lang.Class<?> cls)
cls
- The class to treat the object as.Converting
object so that additional calls
can be chained.T targetAsBean()
Converting
object so that additional calls
can be chained.T targetAsDTO()
Converting
object so that additional calls
can be chained.T view()
Map
, Collection
,
List
and Set
. The live view object
will cease to be live as soon as modifications are made to it. Note that
conversions to an interface or annotation will always produce a live view
that cannot be modified. This modifier has no effect with conversions to
other types.Converting
object so that additional calls
can be chained.Copyright © 2010 - 2020 Adobe. All Rights Reserved