|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.AbstractEntry
public abstract class AbstractEntry
Abstract superclass for entries in an tree based index structure.
| Field Summary | |
|---|---|
private Integer |
id
Holds the id of the object (node or data object) represented by this entry. |
| Constructor Summary | |
|---|---|
|
AbstractEntry()
Empty constructor for serialization purposes. |
protected |
AbstractEntry(Integer id)
Provides a new AbstractEntry with the specified id. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
Integer |
getID()
Returns the id of the node or data object that is represented by this entry. |
int |
hashCode()
Returns as hash code for the entry its id. |
void |
readExternal(ObjectInput in)
Restore the id of the object (node or data object) that is represented by this entry from the specified stream. |
void |
setID(Integer id)
Sets the id of the node or data object that is represented by this entry. |
String |
toString()
Returns the id as a string representation of this entry. |
void |
writeExternal(ObjectOutput out)
Writes the id of the object (node or data object) that is represented by this entry to the specified stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
|---|
isLeafEntry |
| Field Detail |
|---|
private Integer id
| Constructor Detail |
|---|
public AbstractEntry()
protected AbstractEntry(Integer id)
id - the id of the object (node or data object) represented by this entry.| Method Detail |
|---|
public final Integer getID()
getID in interface Entrypublic final void setID(Integer id)
setID in interface Entryid - the id to be set
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - the stream to write the object to
IOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the object
restored cannot be found.
IOException
ClassNotFoundExceptionpublic boolean equals(Object o)
equals in class Objecto - the object to be tested
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||