sg.edu.nus.peer.info
Class IndexInfo

java.lang.Object
  extended by sg.edu.nus.peer.info.IndexInfo
All Implemented Interfaces:
java.io.Serializable

public class IndexInfo
extends java.lang.Object
implements java.io.Serializable

this class contains the necessary info to be stored in the index

Version:
1.0 2006-3-22
Author:
Vu Quang Hieu
See Also:
Serialized Form

Constructor Summary
IndexInfo(java.lang.String value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          two index informations are equal if they represent the same document: the same peer and the same path
 java.lang.String getValue()
          Get document identifier.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexInfo

public IndexInfo(java.lang.String value)
Method Detail

equals

public boolean equals(java.lang.Object o)
two index informations are equal if they represent the same document: the same peer and the same path

Overrides:
equals in class java.lang.Object

getValue

public java.lang.String getValue()
Get document identifier.

Returns:
the document identifier, a 160-bits character string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object