public abstract class AbstractExternalizablePage extends java.lang.Object implements java.io.Externalizable, Page
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty
The dirty flag of this page.
|
private int |
id
The unique id if this page.
|
private static long |
serialVersionUID
Serial version
|
Constructor and Description |
---|
AbstractExternalizablePage()
Empty constructor for Externalizable interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
int |
getPageID()
Returns the unique id of this Page.
|
int |
hashCode()
Returns as hash code value for this node the id of this node.
|
boolean |
isDirty()
Returns true if this page is dirty, false otherwise.
|
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its contents by
calling the methods of DataInput for primitive types and readObject for
objects, strings and arrays.
|
void |
setDirty(boolean dirty)
Sets the dirty flag of this page.
|
void |
setPageID(int id)
Sets the unique id of this Page.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents by
calling the methods of DataOutput for its primitive values or calling the
writeObject method of ObjectOutput for objects, strings, and arrays.
|
private static final long serialVersionUID
private int id
private transient boolean dirty
public AbstractExternalizablePage()
public final int getPageID()
public final void setPageID(int id)
public final boolean isDirty()
public final void setDirty(boolean dirty)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- the stream to write the object tojava.io.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- the stream to read data from in order to restore the objectjava.io.IOException
- if I/O errors occurjava.lang.ClassNotFoundException
- If the class for an object being restored
cannot be found.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to be testedpublic int hashCode()
hashCode
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.