Skip to content

Commit 64a4d3c

Browse files
committed
Added declarations for common collections: d.al = declare array list; d.hm = declare hash map; d.hs = declare hash set; d.st = declare stack
1 parent e5293e3 commit 64a4d3c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: snippets/java.snippets

+13
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ snippet m
8989
snippet v
9090
${1:String} ${2:var}${3: = null}${4};
9191
##
92+
## Declaration for ArrayList
93+
snippet d.al
94+
List<${1:Object}> ${2:list} = ArrayList<$1>;${0}
95+
## Declaration for HashMap
96+
snippet d.hm
97+
Map<${1:Object}, ${2:Object}> ${3:map} = HashMap<$1, $2>;${0}
98+
## Declaration for HashSet
99+
snippet d.hs
100+
Set<${1:Object}> ${2:set} = HashSet<$1>;${0}
101+
## Declaration for Stack
102+
snippet d.st
103+
Stack<${1:Object}> ${2:stack} = Stack<$1>;${0}
104+
##
92105
## Enhancements to Methods, variables, classes, etc.
93106
snippet ab
94107
abstract ${0}

0 commit comments

Comments
 (0)