Created
April 3, 2015 15:12
-
-
Save timjstewart/58700f058159a3df75ca to your computer and use it in GitHub Desktop.
Would something like this work?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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