
cn.leancloud.ops.DeleteOperation Maven / Gradle / Ivy
package cn.leancloud.ops;
import java.util.HashMap;
import java.util.Map;
public class DeleteOperation extends BaseOperation {
DeleteOperation(String key) {
super("Delete", key, null, true);
}
public Object apply(Object obj) {
return null;
}
public Map encode() {
// {"downvotes":{"__op":"Delete"}}
Map opMap = new HashMap();
opMap.put(BaseOperation.KEY_OP, this.getOperation());
Map result = new HashMap();
result.put(this.getField(), opMap);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy