Interface Cloneable<T>

Type Parameters:
T - 实现克隆接口的类型
All Superinterfaces:
Cloneable
All Known Implementing Classes:
Cloning, DynamicBean

public interface Cloneable<T> extends Cloneable
克隆支持接口
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    克隆当前对象,浅复制
  • Method Details

    • clone

      T clone()
      克隆当前对象,浅复制
      Returns:
      克隆后的对象