copyable.java~4~

来自「数据挖掘中常常会遇到apriori算法 这是apriori算法的java版」· JAVA~4~ 代码 · 共 32 行

JAVA~4~
32
字号
package apriori;/** * Interface implemented by classes that can produce "shallow" copies * of their objects. (As opposed to clone(), which is supposed to * produce a "deep" copy.) * * public Object clone() * Makes a copy of this CertStoreParameters. * The precise meaning of "copy" may depend on the class of the CertStoreParameters object. * A typical implementation performs a "deep copy" of this object, * but this is not an absolute requirement. * Some implementations may perform a "shallow copy" of some or all of the fields of this object. * Note that the CertStore.getInstance methods make a copy of the specified CertStoreParameters. * A deep copy implementation of clone is safer and more robust, * as it prevents the caller from corrupting a shared CertStore * by subsequently modifying the contents of its initialization parameters. * However, a shallow copy implementation of clone is more appropriate for applications * that need to hold a reference to a parameter contained in the CertStoreParameters. * For example, a shallow copy clone allows an application to release the resources of a particular *  CertStore initialization parameter immediately, * rather than waiting for the garbage collection mechanism. * This should be done with the utmost care, since the CertStore may still be in use by other threads */public interface Copyable {/**   * This method produces a shallow copy of an object.   * It does the same as the clone() method in Object, which also produces   * a shallow copy.   */  public Object copy();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?