Skip to content

Instantly share code, notes, and snippets.

@timjstewart
Created April 3, 2015 15:12
Show Gist options
  • Select an option

  • Save timjstewart/58700f058159a3df75ca to your computer and use it in GitHub Desktop.

Select an option

Save timjstewart/58700f058159a3df75ca to your computer and use it in GitHub Desktop.
Would something like this work?
public class VertexProperty extends Element {
// Identifies the vertex that this Element's properties will be upserted to.
private Pair<String, Object> vertexIdentifier;
// Creates a VertexProperty with the vertex key and value used to find the vertex
public VertexProperty(final String key, final Object value) {
this.vertexIdentifier = new Pair<>(
Objects.requireNonNull(key),
Objects.requireNonNull(value)
);
}
Pair<String, Object> getVertexIdentifier() {
return vertexIdentifier;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment