@ComponentSpecification public interface TransferObjectUtilLimited
TransferObjectUtil that is GWT compatible.| Modifier and Type | Method and Description |
|---|---|
<TO extends AbstractTransferObject> |
clone(TO template)
|
<TO extends AbstractTransferObject> |
newInstance(TO template)
This method creates a new instance of the
AbstractTransferObject given as template. |
<TO extends AbstractTransferObject> TO clone(TO template)
clone of the AbstractTransferObject given as template.
It should create a deep-copy that does NOT contain references to the original template objects so that
modifications of the returned object will NOT have side-effects on the original template object(s).TO - is the generic type of the AbstractTransferObject.template - is the AbstractTransferObject to clone. Must NOT be null.type as the given template.<TO extends AbstractTransferObject> TO newInstance(TO template)
AbstractTransferObject given as template. A simple
implementation my just return
template.getClass().newInstance(). However, an
implementation may also be generated to be GWT compatible.TO - is the generic type of the AbstractTransferObject.template - is the AbstractTransferObject to create a new instance of. Must NOT be null.type as the given template.Copyright © 2001–2016 mmm-Team. All rights reserved.