append method

MongoDocument append(
  1. String key,
  2. Object value
)

Put the given key/value pair into this Document and return this. Useful for chaining puts in a single expression, e.g. doc.append("a", 1).append("b", 2)

Implementation

MongoDocument append(String key, Object value) {
  _map[key] = value;
  return this;
}