android.content
Class SyncManager.SyncOperation
java.lang.Object
android.content.SyncManager.SyncOperation
- All Implemented Interfaces:
- Comparable
- Enclosing class:
- SyncManager
static class SyncManager.SyncOperation
- extends Object
- implements Comparable
Value type that represents a sync operation.
|
Method Summary |
int |
compareTo(Object o)
Returns an integer indicating the relative positions of the receiver and
the argument in the natural order of elements of the receiver's class. |
void |
setDelay(long delay)
|
String |
toString()
Returns a string containing a concise, human-readable description of the
receiver. |
account
final String account
syncSource
int syncSource
authority
String authority
extras
Bundle extras
key
final String key
earliestRunTime
long earliestRunTime
delay
long delay
rowId
Long rowId
SyncManager.SyncOperation
SyncManager.SyncOperation(String account,
int source,
String authority,
Bundle extras,
long delay)
SyncManager.SyncOperation
SyncManager.SyncOperation(SyncManager.SyncOperation other)
setDelay
public void setDelay(long delay)
toString
public String toString()
- Description copied from class:
Object
- Returns a string containing a concise, human-readable description of the
receiver.
- Overrides:
toString in class Object
- Returns:
- String a printable representation for the receiver.
compareTo
public int compareTo(Object o)
- Description copied from interface:
Comparable
- Returns an integer indicating the relative positions of the receiver and
the argument in the natural order of elements of the receiver's class.
- Specified by:
compareTo in interface Comparable
- Parameters:
o - Object an object to compare the receiver to
- Returns:
- int which should be <0 if the receiver should sort before the
argument, 0 if the receiver should sort in the same position as
the argument, and >0 if the receiver should sort after the
argument.
Please submit a feedback, bug or feature