Android Open Source - couchdbsyncer-android Sequenced Document






From Project

Back to project page couchdbsyncer-android.

License

The source code is released under:

Apache License

If you think the Android project couchdbsyncer-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package au.com.team2moro.couchdbsyncer;
//  ww  w .  j  a v  a 2s.c  o m
public class SequencedDocument implements Comparable<SequencedDocument> {
  private Document document;
  private int sequenceId;
  
  public SequencedDocument(Document document, int sequenceId) {
    this.document = document;
    this.sequenceId = sequenceId;
  }
  
  public Document getDocument() {
    return document;
  }
  public int getSequenceId() {
    return sequenceId;
  }

  public int compareTo(SequencedDocument another) {
    int otherSequenceId = another.getSequenceId();
    return (sequenceId < otherSequenceId ? -1 :
        sequenceId == otherSequenceId ? 0 : 1);
  }
  
}




Java Source Code List

au.com.team2moro.couchdbsyncer.Attachment.java
au.com.team2moro.couchdbsyncer.BulkFetcher.java
au.com.team2moro.couchdbsyncer.ConnectionSettingsTrustAll.java
au.com.team2moro.couchdbsyncer.ConnectionSettings.java
au.com.team2moro.couchdbsyncer.DatabaseStore.java
au.com.team2moro.couchdbsyncer.Database.java
au.com.team2moro.couchdbsyncer.Document.java
au.com.team2moro.couchdbsyncer.DownloadPolicy.java
au.com.team2moro.couchdbsyncer.Fetcher.java
au.com.team2moro.couchdbsyncer.SequencedDocument.java
au.com.team2moro.couchdbsyncer.SyncerService.java
au.com.team2moro.couchdbsyncer.Syncer.java
au.com.team2moro.couchdbsyncer.package-info.java