class DocumentSet implements Iterable<Document> {

  public boolean contains(DocumentKey key) {
    return keyIndex.containsKey(key);
  }

  private  DocumentSet(
      ImmutableSortedMap<DocumentKey, Document> keyIndex, ImmutableSortedSet<Document> sortedSet);

}