Class PrototypeFactory.PrototypeSerializationFactory<T extends java.io.Serializable>
- java.lang.Object
-
- org.apache.commons.collections4.functors.PrototypeFactory.PrototypeSerializationFactory<T>
-
- All Implemented Interfaces:
Factory<T>
- Enclosing class:
- PrototypeFactory
static class PrototypeFactory.PrototypeSerializationFactory<T extends java.io.Serializable> extends java.lang.Object implements Factory<T>
PrototypeSerializationFactory creates objects by cloning a prototype using serialization.
-
-
Field Summary
Fields Modifier and Type Field Description private T
iPrototype
The object to clone via serialization each time
-
Constructor Summary
Constructors Modifier Constructor Description private
PrototypeSerializationFactory(T prototype)
Constructor to store prototype
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create()
Creates an object using serialization.
-