com.funambol.syncclient.spds.engine
Class SyncItemKey

java.lang.Object
  extended by com.funambol.syncclient.spds.engine.SyncItemKey

public class SyncItemKey
extends java.lang.Object

This class represents a unique identifier of a SyncItem item in a repository.

Version:
$Id: SyncItemKey.java,v 1.3 2007-12-22 18:09:18 nichele Exp $

Constructor Summary
SyncItemKey(java.lang.Object keyValue)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Two keys are equal if their keyValues are equal
 java.lang.String getKeyAsString()
           
 java.lang.Object getKeyValue()
           
 void setKeyValue(java.lang.Object keyValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyncItemKey

public SyncItemKey(java.lang.Object keyValue)
Parameters:
keyValue - the key - NOT NULL (assert checked)
Method Detail

getKeyValue

public java.lang.Object getKeyValue()

setKeyValue

public void setKeyValue(java.lang.Object keyValue)
Parameters:
keyValue - the key - NOT NULL (assert checked)

getKeyAsString

public java.lang.String getKeyAsString()
Returns:
this key's value as a String object (calling toString() on the value object)

equals

public boolean equals(java.lang.Object o)
Two keys are equal if their keyValues are equal

Overrides:
equals in class java.lang.Object
Parameters:
o - the object this instance must be compared to.
Returns:
the given object is equal to this object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation for debugging purposes of this SyncItemKey.


Copyright © 2010 Funambol. All Rights Reserved.