File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/com/annimon/ownlang/lib Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .annimon .ownlang .lib ;
2
2
3
3
import com .annimon .ownlang .exceptions .TypeException ;
4
- import java .util .HashMap ;
5
4
import java .util .Iterator ;
5
+ import java .util .LinkedHashMap ;
6
6
import java .util .Map ;
7
7
import java .util .Objects ;
8
8
import java .util .function .Consumer ;
@@ -25,7 +25,7 @@ public static MapValue merge(MapValue map1, MapValue map2) {
25
25
private final Map <Value , Value > map ;
26
26
27
27
public MapValue (int size ) {
28
- this .map = new HashMap <>(size );
28
+ this .map = new LinkedHashMap <>(size );
29
29
}
30
30
31
31
public MapValue (Map <Value , Value > map ) {
@@ -84,6 +84,10 @@ public void set(String key, Function function) {
84
84
public void set (Value key , Value value ) {
85
85
map .put (key , value );
86
86
}
87
+
88
+ public Map <Value , Value > getMap () {
89
+ return map ;
90
+ }
87
91
88
92
@ Override
89
93
public Object raw () {
You can’t perform that action at this time.
0 commit comments