Merge pull request #383 from 0hansen/master
Java: fixed some issues and added declarations for collections
This commit is contained in:
commit
7d055aa31f
@ -1,10 +1,10 @@
|
|||||||
## Access Modifiers
|
## Access Modifiers
|
||||||
snippet po
|
snippet po
|
||||||
protected
|
protected ${0}
|
||||||
snippet pu
|
snippet pu
|
||||||
public
|
public ${0}
|
||||||
snippet pr
|
snippet pr
|
||||||
private
|
private ${0}
|
||||||
##
|
##
|
||||||
## Annotations
|
## Annotations
|
||||||
snippet before
|
snippet before
|
||||||
@ -25,7 +25,7 @@ snippet oo
|
|||||||
##
|
##
|
||||||
## Basic Java packages and import
|
## Basic Java packages and import
|
||||||
snippet im
|
snippet im
|
||||||
import
|
import ${0}
|
||||||
snippet j.b
|
snippet j.b
|
||||||
java.beans.
|
java.beans.
|
||||||
snippet j.i
|
snippet j.i
|
||||||
@ -39,17 +39,17 @@ snippet j.u
|
|||||||
##
|
##
|
||||||
## Class
|
## Class
|
||||||
snippet cl
|
snippet cl
|
||||||
class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
|
class ${1:`vim_snippets#Filename("$1", "untitled")`} ${0}
|
||||||
snippet in
|
snippet in
|
||||||
interface ${1:`vim_snippets#Filename("", "untitled")`} ${2:extends Parent}
|
interface ${1:`vim_snippets#Filename("$1", "untitled")`} ${2:extends Parent}
|
||||||
snippet tc
|
snippet tc
|
||||||
public class ${1:`vim_snippets#Filename()`} extends ${0:TestCase}
|
public class ${1:`vim_snippets#Filename("$1")`} extends ${0:TestCase}
|
||||||
##
|
##
|
||||||
## Class Enhancements
|
## Class Enhancements
|
||||||
snippet ext
|
snippet ext
|
||||||
extends
|
extends ${0}
|
||||||
snippet imp
|
snippet imp
|
||||||
implements
|
implements ${0}
|
||||||
##
|
##
|
||||||
## Comments
|
## Comments
|
||||||
snippet /*
|
snippet /*
|
||||||
@ -89,15 +89,28 @@ snippet m
|
|||||||
snippet v
|
snippet v
|
||||||
${1:String} ${2:var}${3: = null}${4};
|
${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.
|
## Enhancements to Methods, variables, classes, etc.
|
||||||
snippet ab
|
snippet ab
|
||||||
abstract
|
abstract ${0}
|
||||||
snippet fi
|
snippet fi
|
||||||
final
|
final ${0}
|
||||||
snippet st
|
snippet st
|
||||||
static
|
static ${0}
|
||||||
snippet sy
|
snippet sy
|
||||||
synchronized
|
synchronized ${0}
|
||||||
##
|
##
|
||||||
## Error Methods
|
## Error Methods
|
||||||
snippet err
|
snippet err
|
||||||
@ -113,9 +126,9 @@ snippet as
|
|||||||
snippet ca
|
snippet ca
|
||||||
catch(${1:Exception} ${2:e}) ${0}
|
catch(${1:Exception} ${2:e}) ${0}
|
||||||
snippet thr
|
snippet thr
|
||||||
throw
|
throw ${0}
|
||||||
snippet ths
|
snippet ths
|
||||||
throws
|
throws ${0}
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
${0}
|
${0}
|
||||||
@ -144,7 +157,7 @@ snippet @au
|
|||||||
snippet @br
|
snippet @br
|
||||||
@brief ${0:Description}
|
@brief ${0:Description}
|
||||||
snippet @fi
|
snippet @fi
|
||||||
@file ${0:`vim_snippets#Filename()`}.java
|
@file ${0:`vim_snippets#Filename("$1")`}.java
|
||||||
snippet @pa
|
snippet @pa
|
||||||
@param ${0:param}
|
@param ${0:param}
|
||||||
snippet @re
|
snippet @re
|
||||||
@ -206,7 +219,7 @@ snippet get
|
|||||||
##
|
##
|
||||||
## Terminate Methods or Loops
|
## Terminate Methods or Loops
|
||||||
snippet re
|
snippet re
|
||||||
return
|
return ${0}
|
||||||
snippet br
|
snippet br
|
||||||
break;
|
break;
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user