程序包 weka.core

类 SerializedObject

java.lang.Object
weka.core.SerializedObject
所有已实现的接口:
Serializable, RevisionHandler

public class SerializedObject extends Object implements Serializable, RevisionHandler
Class for storing an object in serialized form in memory. It can be used to make deep copies of objects, and also allows compression to conserve memory.

版本:
$Revision: 1.12 $
作者:
Richard Kirkby (rbk1@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • SerializedObject

      public SerializedObject(Object toStore) throws Exception
      Creates a new serialized object (without compression).
      参数:
      toStore - the object to store
      抛出:
      Exception - if the object couldn't be serialized
    • SerializedObject

      public SerializedObject(Object toStore, boolean compress) throws Exception
      Creates a new serialized object.
      参数:
      toStore - the object to store
      compress - whether or not to use compression
      抛出:
      Exception - if the object couldn't be serialized
  • 方法详细资料

    • equals

      public final boolean equals(Object compareTo)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      Returns a hashcode for this object.
      覆盖:
      hashCode 在类中 Object
      返回:
      the hashcode
    • getObject

      public Object getObject()
      Returns a serialized object. Uses org.python.util.PythonObjectInputStream for Jython objects (read here for more details).
      返回:
      the restored object
      抛出:
      Exception - if the object couldn't be restored
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision