public interface ObjectTransform
Another popular technique is to output wrapper objects that do some strange thing to the original victim on the fly. Any behavior like this should be explictly mentioned however.
Both of those examples show how a change to the original may affect or even invalidate the new version. Tough - if you don't want that to happen, clone it first.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
transform(java.lang.Object victim)
Our one method; this transforms one object into another.
|