Back to project page couchdbsyncer-android.
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.
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); } }