From 64a4d3c922f2f786202ff23ee7def3391da85f7e Mon Sep 17 00:00:00 2001 From: Ole Hansen Date: Mon, 9 Jun 2014 19:10:02 +0200 Subject: [PATCH] Added declarations for common collections: d.al = declare array list; d.hm = declare hash map; d.hs = declare hash set; d.st = declare stack --- snippets/java.snippets | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/snippets/java.snippets b/snippets/java.snippets index 0f2a095..ab35649 100644 --- a/snippets/java.snippets +++ b/snippets/java.snippets @@ -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}