weka.core
Interface Copyable

All Known Subinterfaces:
Instance
All Known Implementing Classes:
AbstractInstance, Attribute, BestFirst.LinkedList2, BinarySparseInstance, DenseInstance, FastVector, JRip.Antd, JRip.NominalAntd, JRip.NumericAntd, JRip.RipperRule, Rule, SparseInstance

public interface Copyable

Interface implemented by classes that can produce "shallow" copies of their objects. (As opposed to clone(), which is supposed to produce a "deep" copy.)

Version:
$Revision: 8034 $
Author:
Eibe Frank ([email protected])

Method Summary
 Object copy()
          This method produces a shallow copy of an object.
 

Method Detail

copy

Object copy()
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.



Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.