use of com.baidu.hugegraph.define.Checkable in project incubator-hugegraph by apache.
the class API method checkUpdatingBody.
protected static void checkUpdatingBody(Collection<? extends Checkable> bodies) {
E.checkArgumentNotNull(bodies, "The request body can't be empty");
for (Checkable body : bodies) {
E.checkArgumentNotNull(body, "The batch body can't contain null record");
body.checkUpdate();
}
}
use of com.baidu.hugegraph.define.Checkable in project incubator-hugegraph by apache.
the class API method checkCreatingBody.
protected static void checkCreatingBody(Collection<? extends Checkable> bodies) {
E.checkArgumentNotNull(bodies, "The request body can't be empty");
for (Checkable body : bodies) {
E.checkArgument(body != null, "The batch body can't contain null record");
body.checkCreate(true);
}
}
Aggregations