code: synchronized Collection<KeyValue> getAll(long index) {
          incrementLastAppliedIndex(index);
  
          Collection<KeyValue> copiedEntries = Lists.newArrayListWithCapacity(entries.size());
          for (Map.Entry<String, String> entry : entries.entrySet()) {
              copiedEntries.add(new KeyValue(entry.getKey(), entry.getValue()));
          }
  
          return copiedEntries;
      }
docs: Get all (key, value) pairs.
  
  @param index log index >= 0 associated with this command
  @return a <strong>copy</strong> of the most up-to-date {@code key=>value} pairs for all keys