本文整理汇总了Java中com.tinkerpop.blueprints.util.ExceptionFactory.bothIsNotSupported方法的典型用法代码示例。如果您正苦于以下问题:Java ExceptionFactory.bothIsNotSupported方法的具体用法?Java ExceptionFactory.bothIsNotSupported怎么用?Java ExceptionFactory.bothIsNotSupported使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.tinkerpop.blueprints.util.ExceptionFactory
的用法示例。
在下文中一共展示了ExceptionFactory.bothIsNotSupported方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getVertex
import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
@Override
public TitanVertex getVertex(int pos) {
if (pos==0) {
return new FaunusVertex(configuration, outVertex);
} else if (pos==1) {
return new FaunusVertex(configuration, inVertex);
} else {
throw ExceptionFactory.bothIsNotSupported();
}
}
示例2: getVertexId
import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public long getVertexId(final Direction direction) {
if (OUT.equals(direction)) {
return this.outVertex;
} else if (IN.equals(direction)) {
return this.inVertex;
} else {
throw ExceptionFactory.bothIsNotSupported();
}
}
示例3: addEdge
import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public FaunusEdge addEdge(final Direction direction, final String label, final long otherVertexId) {
if (direction == OUT)
return this.addEdge(new StandardFaunusEdge(this.configuration, getLongId(), otherVertexId, label));
else if (direction == Direction.IN)
return this.addEdge(new StandardFaunusEdge(this.configuration, otherVertexId, getLongId(), label));
else
throw ExceptionFactory.bothIsNotSupported();
}
示例4: getVertexId
import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
public String getVertexId(Direction direction) throws IllegalArgumentException {
switch (direction) {
case IN:
return destinationId;
case OUT:
return sourceId;
case BOTH:
default:
throw ExceptionFactory.bothIsNotSupported();
}
}
示例5: getVertex
import com.tinkerpop.blueprints.util.ExceptionFactory; //导入方法依赖的package包/类
@Override
public Vertex getVertex(Direction direction) throws IllegalArgumentException {
if (direction.equals(Direction.IN))
return this.inVertex;
else if (direction.equals(Direction.OUT))
return this.outVertex;
else
throw ExceptionFactory.bothIsNotSupported();
}