sync4j.syncclient.spds.engine
Class SyncItemKey

java.lang.Object
  extended bysync4j.syncclient.spds.engine.SyncItemKey

public class SyncItemKey
extends java.lang.Object

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


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

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()
Returns:
a string representation for debugging purposes of this SyncItemKey.


Copyright © 2003-2005 Sync4j.