public class DocumentSnapshotComparator extends java.lang.Object implements java.util.Comparator<DocumentSnapshot>
DocumentSnapshot objects that supports both
snapshots that implement the Comparable interface and legacy
comparisons using the document IDs. This implementation does not
support null snapshot values.| Modifier and Type | Field and Description |
|---|---|
static DocumentSnapshotComparator |
COMPARATOR
An instance of this comparator for convenience.
|
| Constructor and Description |
|---|
DocumentSnapshotComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(DocumentSnapshot left,
DocumentSnapshot right) |
public static final DocumentSnapshotComparator COMPARATOR
public int compare(DocumentSnapshot left, DocumentSnapshot right)
compare in interface java.util.Comparator<DocumentSnapshot>java.lang.NullPointerException - if left or right is null