Skip to content

Instantly share code, notes, and snippets.

@suhtai
Created April 19, 2017 09:56
Show Gist options
  • Select an option

  • Save suhtai/2c08f94e629d9df42bda374df9a16d37 to your computer and use it in GitHub Desktop.

Select an option

Save suhtai/2c08f94e629d9df42bda374df9a16d37 to your computer and use it in GitHub Desktop.

Revisions

  1. suhtai created this gist Apr 19, 2017.
    20 changes: 20 additions & 0 deletions wither.template
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #set($paramName = $helper.getParamName($field, $project))
    public ##
    #if($field.modifierStatic)
    static void ##
    #else
    $classname ##
    #end
    with$StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))($field.type $paramName) {
    #if ($field.name == $paramName)
    #if (!$field.modifierStatic)
    this.##
    #else
    $classname.##
    #end
    #end
    $field.name = $paramName;
    #if(!$field.modifierStatic)
    return this;
    #end
    }