程序包 weka.core
类 SerializedObject
java.lang.Object
weka.core.SerializedObject
- 所有已实现的接口:
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
(Object toStore) Creates a new serialized object (without compression).SerializedObject
(Object toStore, boolean compress) Creates a new serialized object. -
方法概要
-
构造器详细资料
-
SerializedObject
Creates a new serialized object (without compression).- 参数:
toStore
- the object to store- 抛出:
Exception
- if the object couldn't be serialized
-
SerializedObject
Creates a new serialized object.- 参数:
toStore
- the object to storecompress
- whether or not to use compression- 抛出:
Exception
- if the object couldn't be serialized
-
-
方法详细资料
-
equals
-
hashCode
public int hashCode()Returns a hashcode for this 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
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-