File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
src/main/java/com/arangodb/velocypack/internal Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
7
7
## [ Unreleased]
8
8
9
+ - Map and Set VPackInstanceCreators preserve collections entries order (based on ` LinkedHashSet ` and ` LinkedHashMap ` )
10
+
9
11
## [ 2.1.0] - 2019-12-20
10
12
11
13
- added [ tags support] ( https://github.com/arangodb/velocypack/blob/master/VelocyPack.md#tagging )
Original file line number Diff line number Diff line change 20
20
21
21
package com .arangodb .velocypack .internal ;
22
22
23
- import java .util .ArrayList ;
24
- import java .util .Collection ;
25
- import java .util .HashMap ;
26
- import java .util .HashSet ;
27
- import java .util .List ;
28
- import java .util .Map ;
29
- import java .util .Set ;
30
-
31
23
import com .arangodb .velocypack .VPackInstanceCreator ;
32
24
25
+ import java .util .*;
26
+
33
27
/**
34
28
* @author Mark Vollmary
35
29
*
@@ -56,13 +50,13 @@ public List createInstance() {
56
50
public static final VPackInstanceCreator <Set > SET = new VPackInstanceCreator <Set >() {
57
51
@ Override
58
52
public Set createInstance () {
59
- return new HashSet ();
53
+ return new LinkedHashSet ();
60
54
}
61
55
};
62
56
public static final VPackInstanceCreator <Map > MAP = new VPackInstanceCreator <Map >() {
63
57
@ Override
64
58
public Map createInstance () {
65
- return new HashMap ();
59
+ return new LinkedHashMap ();
66
60
}
67
61
};
68
62
You can’t perform that action at this time.
0 commit comments