Commit 29c6eebc authored by Joshua Shinavier's avatar Joshua Shinavier
Browse files

Use lambda in annotation example

parent e851b204
......@@ -205,13 +205,7 @@ public abstract class Person extends AbstractVertexFrame {
public abstract Knows addKnows(Person friend);
public List<? extends Person> getFriendsNamedBill() {
return this.traverse(new Function<GraphTraversal<? extends Vertex, ? extends Vertex>, GraphTraversal<?, ?>>() {
public GraphTraversal<?, ?> apply(@Nullable final GraphTraversal<? extends Vertex, ? extends Vertex> input) {
return input.out("knows").has("name", "bill");
return this.traverse(input -> input.out("knows").has("name", "bill")).toList(Person.class);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment