de.gesellix.couchdb.model.MapWithDocumentId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of couchdb-client Show documentation
Show all versions of couchdb-client Show documentation
A CouchDB client written in Groovy
The newest version!
package de.gesellix.couchdb.model;
import java.util.HashMap;
import java.util.Map;
public class MapWithDocumentId extends HashMap implements DocumentId {
public MapWithDocumentId(Map delegate) {
super(delegate);
}
@Override
public String getId() {
return (String) get("_id");
}
}