Class Copyable.Static

  • Enclosing interface:
    Copyable

    public static final class Copyable.Static
    extends Object
    • Constructor Detail

      • Static

        public Static()
    • Method Detail

      • copy

        public static <T extends Copyable> T copy​(T copyable)
        Returns either null if the passed instance is null, otherwise returns the instance created by the call to Copyable.copy().
        Type Parameters:
        T - The type of the Copyable instance.
        Parameters:
        copyable - the instance whose Copyable.copy() method shall be called to create the copy.
        Returns:
        the copy created by the call to the Copyable.copy() method from the passed instance.