|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.collections15.functors.transformer.CloneTransformer<E>
public class CloneTransformer<E>
Transformer
implementation that returns a clone of the input
object.
PrototypeFactory
class.
Constructor Summary | |
---|---|
protected |
CloneTransformer()
Creates a new instance. |
Method Summary | ||
---|---|---|
static
|
getInstance()
Returns a new CloneTransformer instance. |
|
E |
transform(E input)
Transforms the input object, producing a clone of it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CloneTransformer()
Method Detail |
---|
public static <E> CloneTransformer<E> getInstance()
CloneTransformer
instance.
CloneTransformer
instance.public E transform(E input)
PrototypeFactory.getInstance(T)
.
transform
in interface Transformer<E,E>
input
- The input object to transform.
java.lang.IllegalArgumentException
- If a Factory
cannot be
created that is capable of creating a
copy of the input object. See the PrototypeFactory
class description for
details on the methods used to clone the
input object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |