Class PrototypeFactory.PrototypeCloneFactory<T>

  • All Implemented Interfaces:
    Factory<T>
    Enclosing class:
    PrototypeFactory

    static class PrototypeFactory.PrototypeCloneFactory<T>
    extends Object
    implements Factory<T>
    PrototypeCloneFactory creates objects by copying a prototype using the clone method.
    • Method Detail

      • create

        public T create()
        Creates an object by calling the clone method.
        Specified by:
        create in interface Factory<T>
        Returns:
        the new object