Skip to content

Instantly share code, notes, and snippets.

@matthewadams
Created September 10, 2013 22:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewadams/6516544 to your computer and use it in GitHub Desktop.
Save matthewadams/6516544 to your computer and use it in GitHub Desktop.
SOM Property Methods eclipse template
public ${Type} get${UpperName}() {
return ${lowerName};
}
public void set${UpperName}(${Type} ${lowerName}) {
testSet${UpperName}(${lowerName});
doSet${UpperName}(${lowerName});
}
protected void testSet${UpperName}(${Type} ${lowerName}) {
${}
}
protected void doSet${UpperName}(${Type} ${lowerName}) {
this.${lowerName} = ${lowerName};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment