Class CloneableBean


  • public class CloneableBean
    extends Object
    Provides deep Bean clonning support.

    It works on all read/write properties, recursively. It support all primitive types, Strings, Collections, Cloneable objects and multi-dimensional arrays of any of them.

    • Method Detail

      • beanClone

        public static Object beanClone​(Object obj,
                                       Set<String> ignoreProperties)
                                throws CloneNotSupportedException
        Makes a deep bean clone of the object passed in the constructor.

        To be used by classes using CloneableBean in a delegation pattern,

        Returns:
        a clone of the object bean.
        Throws:
        CloneNotSupportedException - thrown if the object bean could not be cloned.