Class NaturalCloner

  • All Implemented Interfaces:
    Cloner

    public class NaturalCloner
    extends Object
    implements Cloner
    A Cloner that clones Cloneable objects.
    Author:
    gg/mf 2012.07.12
    • Constructor Detail

      • NaturalCloner

        public NaturalCloner()
    • Method Detail

      • clone

        public <T> T clone​(T o)
        Description copied from interface: Cloner
        Return a copy of the specified object.
        Specified by:
        clone in interface Cloner
        Type Parameters:
        T - the type of the object
        Parameters:
        o - the object to clone
        Returns:
        the new object