org.apache.tinkerpop.gremlin.structure.T.toString()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(134)

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

T.toString介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

public void doSomething() {
  String someString;
  T lastValueCopy = lastValue;
  if (lastValueCopy != null) {
    someString += lastValueCopy.toString();
  }
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} else {
  text.setText(item.toString());
}

代码示例来源:origin: apache/tinkerpop

@Override
public String toString() {
  return this.t.toString();
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);

if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} 
else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) { // A null value throws an NPE here
  text.setText((CharSequence)item);
} else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

protected void updateItem(T item, boolean empty) {
  super.updateItem(item, empty);
  if (empty || item == null) {
    setText(null);
    setGraphic(null);
  } else {
    setText(item.toString());
  }
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} 
else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

if (convertView == null) {
   view = mInflater.inflate(resource, parent, false);
 } else {
   view = convertView;
 }
 <irrelevant stuff snipped>
 T item = getItem(position);
 if (item instanceof CharSequence) {
   text.setText((CharSequence)item);
 } else {
   text.setText(item.toString());
 }

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
 text.setText((CharSequence)item);
} else {
 text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

final T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence) item);
} else {
  text.setText(item.toString());
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
if (item instanceof CharSequence) {
  text.setText((CharSequence)item);
} else {
  text.setText(item.toString()); // Line 394, when item is null this throws an NPE
}

代码示例来源:origin: stackoverflow.com

cell.setConverter(new StringConverter<T>() {
     @Override
     public String toString(T object) {
       return object.toString();
     }
     @Override
     public T fromString(String string) {
       return (T) string;
     }
   });

代码示例来源:origin: stackoverflow.com

protected void updateItem(T item, boolean empty) {
  super.updateItem(item, empty);
  if (empty || item == null) {
    setText(null);
    setGraphic(null);
  } else {
    setText(item.toString());
  }
}

代码示例来源:origin: stackoverflow.com

T item = getItem(position);
 if (item instanceof CharSequence) {
   text.setText((CharSequence)item);
 } else {
   text.setText(item.toString());
 }

代码示例来源:origin: org.apache.tinkerpop/gremlin-core

@Override
public String toString() {
  return this.t.toString();
}

代码示例来源:origin: opencypher/cypher-for-gremlin

private Object getT(Map<?, ?> element, T prop) {
  return element.containsKey(prop) ?
    element.get(prop) :
    element.get(prop.toString());
}

代码示例来源:origin: unipop-graph/unipop

public UniElement(Map<String, Object> properties, ElementSchema schema, UniGraph graph) {
  this.graph = graph;
  this.schema = schema;
  this.id = ObjectUtils.firstNonNull(
      properties.remove(T.id.getAccessor()),
      properties.remove(T.id.toString()),
      UUID.randomUUID())
      .toString();
  this.label = ObjectUtils.firstNonNull(
      properties.remove(T.label.getAccessor()),
      properties.remove(T.label.toString()),
      getDefaultLabel())
      .toString();
}

代码示例来源:origin: unipop-graph/unipop

@Override
public Edge addEdge(final String label, final Vertex vertex, final Object... keyValues) {
  if (null == vertex) throw Graph.Exceptions.argumentCanNotBeNull("vertex");
  ElementHelper.legalPropertyKeyValueArray(keyValues);
  ElementHelper.validateLabel(label);
  Map<String, Object> stringObjectMap = ConversionUtils.asMap(keyValues);
  stringObjectMap.put(T.label.toString(), label);
  return graph.getControllerManager().getControllers(AddEdgeQuery.AddEdgeController.class).stream()
      .map(controller -> controller.addEdge(new AddEdgeQuery(this, vertex, new HashMap<>(stringObjectMap), null)))
      .filter(e -> e != null)
      .findFirst().get();
}

相关文章