Skip to content

Commit

Permalink
Added declarations for common collections: d.al = declare array list;…
Browse files Browse the repository at this point in the history
… d.hm = declare hash map; d.hs = declare hash set; d.st = declare stack
  • Loading branch information
cinocode committed Jun 9, 2014
1 parent e5293e3 commit 64a4d3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snippets/java.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ snippet m
snippet v
${1:String} ${2:var}${3: = null}${4};
##
## Declaration for ArrayList
snippet d.al
List<${1:Object}> ${2:list} = ArrayList<$1>;${0}
## Declaration for HashMap
snippet d.hm
Map<${1:Object}, ${2:Object}> ${3:map} = HashMap<$1, $2>;${0}
## Declaration for HashSet
snippet d.hs
Set<${1:Object}> ${2:set} = HashSet<$1>;${0}
## Declaration for Stack
snippet d.st
Stack<${1:Object}> ${2:stack} = Stack<$1>;${0}
##
## Enhancements to Methods, variables, classes, etc.
snippet ab
abstract ${0}
Expand Down

0 comments on commit 64a4d3c

Please sign in to comment.