|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.AbstractOBResult<O>
O - The object that was added into the result.public abstract class AbstractOBResult<O>
Holds a match result. It includes the object matched, its internal id and subclasses of this class will hold the distance value. WARNING: The internal id held in this class does not make sense in a P2P environment.
| Field Summary | |
|---|---|
protected long |
id
Its internal id. |
protected O |
object
The object to be stored. |
| Constructor Summary | |
|---|---|
AbstractOBResult()
Default constructor. |
|
AbstractOBResult(O object,
long id)
Creates a new result with the given object and id. |
|
| Method Summary | |
|---|---|
long |
getId()
|
O |
getObject()
|
void |
setId(long id)
Sets the internal id of the result. |
void |
setObject(O obj)
Sets the object of the result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected O object
protected long id
| Constructor Detail |
|---|
public AbstractOBResult()
public AbstractOBResult(O object,
long id)
object - The object to be stored in the result.id - The internal id of the object.| Method Detail |
|---|
public final O getObject()
public final void setObject(O obj)
obj - public final long getId()
public final void setId(long id)
id - The identification number of this result's object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||