Skip to content

Commit 92b3bec

Browse files
committed
Records now also contains a Values method() according to specification
1 parent 28bc6e8 commit 92b3bec

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

driver/src/main/java/org/neo4j/driver/internal/InternalRecord.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public List<String> keys()
5454
return keys;
5555
}
5656

57+
@Override
58+
public List<Value> values()
59+
{
60+
return Values.value( asMap().values()).asList(ofValue());
61+
}
62+
5763
@Override
5864
public List<Pair<String, Value>> fields()
5965
{

driver/src/main/java/org/neo4j/driver/v1/Record.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public interface Record
4848
*/
4949
List<String> keys();
5050

51+
/**
52+
* Retrieve the values of the underlying map
53+
*
54+
* @return all field keys in order
55+
*/
56+
List<Value> values();
57+
5158
/**
5259
* Check if the list of keys contains the given key
5360
*

0 commit comments

Comments
 (0)