@Test public void testReturnsNilIfNoChange() { Query query = messageQuery(); View view = new View(query, DocumentKey.emptyKeySet()); Document doc1 = doc("rooms/eros/messages/1", 0, map("text", "msg1")); Document doc2 = doc("rooms/eros/messages/2", 0, map("text", "msg2")); applyChanges(view, doc1, doc2); ViewSnapshot snapshot = applyChanges(view, doc1, doc2).getSnapshot(); assertNull(snapshot); }
public ViewChange applyChanges(DocumentChanges docChanges) { return applyChanges(docChanges, null); }
View { public ViewChange applyChanges(DocumentChanges docChanges) { return applyChanges(docChanges, null); } }
View { public ViewChange applyChanges(DocumentChanges docChanges) { return applyChanges(docChanges, null); } View(Query query, ImmutableSortedSet<DocumentKey> remoteDocuments); }
View { public ViewChange applyChanges(DocumentChanges docChanges) { return applyChanges(docChanges, null); } View(Query query, ImmutableSortedSet<DocumentKey> remoteDocuments); SyncState getSyncState(); DocumentChanges computeDocChanges(
      ImmutableSortedMap<DocumentKey, D> docChanges); DocumentChanges computeDocChanges(
      ImmutableSortedMap<DocumentKey, D> docChanges, @Nullable DocumentChanges previousChanges); ViewChange applyChanges(DocumentChanges docChanges); ViewChange applyChanges(DocumentChanges docChanges, TargetChange targetChange); ViewChange applyOnlineStateChange(OnlineState onlineState); }
View { public ViewChange applyChanges(DocumentChanges docChanges) { return applyChanges(docChanges, null); } View(Query query, ImmutableSortedSet<DocumentKey> remoteDocuments); SyncState getSyncState(); DocumentChanges computeDocChanges(
      ImmutableSortedMap<DocumentKey, D> docChanges); DocumentChanges computeDocChanges(
      ImmutableSortedMap<DocumentKey, D> docChanges, @Nullable DocumentChanges previousChanges); ViewChange applyChanges(DocumentChanges docChanges); ViewChange applyChanges(DocumentChanges docChanges, TargetChange targetChange); ViewChange applyOnlineStateChange(OnlineState onlineState);  }