com.tinkerpop.blueprints.Element.remove()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(259)

本文整理了Java中com.tinkerpop.blueprints.Element.remove()方法的一些代码示例,展示了Element.remove()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.remove()方法的具体详情如下:
包路径:com.tinkerpop.blueprints.Element
类名称:Element
方法名:remove

Element.remove介绍

[英]Remove the element from the graph.
[中]从图形中删除该元素。

代码示例

代码示例来源:origin: com.tinkerpop.gremlin/gremlin-java

  1. /**
  2. * Remove every element at the end of this Pipeline.
  3. */
  4. @Override
  5. public void remove() {
  6. for (final Object object : this) {
  7. ((Element) object).remove();
  8. }
  9. }

代码示例来源:origin: BrynCooke/totorom

  1. /**
  2. * Remove this element from the graph.
  3. */
  4. protected void remove() {
  5. element.remove();
  6. }

代码示例来源:origin: com.tinkerpop.blueprints/blueprints-core

  1. public void remove() {
  2. this.baseElement.remove();
  3. }

代码示例来源:origin: BrynCooke/totorom

  1. @Override
  2. public void remove() {
  3. if (current != null) {
  4. current.remove();
  5. current = null;
  6. } else {
  7. throw new IllegalStateException();
  8. }
  9. }
  10. };

代码示例来源:origin: BrynCooke/totorom

  1. @Override
  2. public void remove() {
  3. if (current instanceof Element) {
  4. ((Element) current).remove();
  5. current = null;
  6. }
  7. else {
  8. throw new UnsupportedOperationException("Current must be an element to remove");
  9. }
  10. }

相关文章