sg.edu.nus.peer.info
Class IndexPair

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

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

Implement a pair of index: keyword and field.

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

Constructor Summary
IndexPair(java.lang.String serializeData)
          Construct the message body from a string value.
IndexPair(java.lang.String keyword, java.lang.String fieldID)
          Construct the Index Pair with keyword and fieldID.
 
Method Summary
 java.lang.String getFieldID()
          Get field ID
 java.lang.String getKeyword()
          Get keyword
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexPair

public IndexPair(java.lang.String keyword,
                 java.lang.String fieldID)
Construct the Index Pair with keyword and fieldID.

Parameters:
keyword -
fieldID -

IndexPair

public IndexPair(java.lang.String serializeData)
Construct the message body from a string value.

Parameters:
serializeData - the string value that contains the serialized message body
Method Detail

getKeyword

public java.lang.String getKeyword()
Get keyword

Returns:
keyword

getFieldID

public java.lang.String getFieldID()
Get field ID

Returns:
fieldID

toString

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