You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "dkuppitz (GitHub)" <gi...@apache.org> on 2018/10/11 17:11:15 UTC
[GitHub] [tinkerpop] dkuppitz commented on pull request #961:
TINKERPOP-2061 Added with() option for traversal configuration
Perhaps a little bit more elegant:
```java
public default TraversalSource with(final String key, final Object value) {
final OptionsStrategy.Builder builder = OptionsStrategy.build();
getStrategies().getStrategy(OptionsStrategy.class)
.ifPresent(optionsStrategy -> optionsStrategy.getOptions().forEach(builder::with));
builder.with(key, value);
return withStrategies(builder.create());
}
```
[ Full content available at: https://github.com/apache/tinkerpop/pull/961 ]
This message was relayed via gitbox.apache.org for dev@tinkerpop.apache.org