Class PrototypeFactory.PrototypeCloneFactory<T>
java.lang.Object
org.apache.commons.collections4.functors.PrototypeFactory.PrototypeCloneFactory<T>
- All Implemented Interfaces:
Factory<T>
- Enclosing class:
PrototypeFactory
PrototypeCloneFactory creates objects by copying a prototype using the clone method.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PrototypeCloneFactory
(T prototype, Method method) Constructor to store prototype. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates an object by calling the clone method.private void
Find the Clone method for the class specified.
-
Field Details
-
iPrototype
The object to clone each time -
iCloneMethod
The method used to clone
-
-
Constructor Details
-
PrototypeCloneFactory
Constructor to store prototype.
-
-
Method Details