Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created October 26, 2011 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Riduidel/1316135 to your computer and use it in GitHub Desktop.
Save Riduidel/1316135 to your computer and use it in GitHub Desktop.
un template pour Eclipse facilitant l'écriture de setters fluents
/**
* @param ${fieldName} new value for #${fieldName}
* @category fluent
* @category setter
* @category ${fieldName}
* @return this object for chaining calls
*/
public ${primary_type_name} with${uppercasedFieldName}(${fieldType} ${fieldName}) {
this.set${uppercasedFieldName}(${fieldName});
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment