Created
October 17, 2018 19:37
-
-
Save AyatKhraisat/08f47bf6c1cc1b59baf74ccefa669c40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if($field.modifierStatic) | |
static ## | |
#end | |
$field.type ## | |
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project)))) | |
#if ($field.boolean && $field.primitive) | |
is## | |
#else | |
get## | |
#end | |
${name}() { | |
#if ($field.String) | |
return $field.name == null ? "" : $field.name; | |
#else | |
#if ($field.List) | |
return new ArrayList<>($field.name); | |
#else | |
return $field.name; | |
#end | |
#end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment