File tree 1 file changed +6
-5
lines changed
src/main/java/xyz/srnyx/javautilities
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
import org .jetbrains .annotations .NotNull ;
4
4
import org .jetbrains .annotations .Nullable ;
5
5
6
- import java .util .HashMap ;
7
- import java .util .List ;
8
- import java .util .Map ;
9
- import java .util .TreeMap ;
6
+ import java .util .*;
10
7
import java .util .function .Supplier ;
11
8
12
9
@@ -20,7 +17,11 @@ public class MapGenerator {
20
17
*/
21
18
@ NotNull public static final MapGenerator HASH_MAP = new MapGenerator (HashMap ::new );
22
19
/**
23
- * Default map generator for {@link TreeMap} (sorted)
20
+ * Default map generator for {@link LinkedHashMap} (sorted by insertion order)
21
+ */
22
+ @ NotNull public static final MapGenerator LINKED_HASH_MAP = new MapGenerator (LinkedHashMap ::new );
23
+ /**
24
+ * Default map generator for {@link TreeMap} (sorted by natural order)
24
25
*/
25
26
@ NotNull public static final MapGenerator TREE_MAP = new MapGenerator (TreeMap ::new );
26
27
You can’t perform that action at this time.
0 commit comments