Skip to content

Instantly share code, notes, and snippets.

Suvodeep Pyne suvodeep-pyne

Block or report user

Report or block suvodeep-pyne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@suvodeep-pyne
suvodeep-pyne / getter-with-optional.template
Created Mar 28, 2018
Intellij Getter template for generating getters with Optional
View getter-with-optional.template
#if($field.modifierStatic)
static ##
#end
Optional<$field.type> ##
#set($name = $StringUtil.capitalizeWithJavaBeanConvention($StringUtil.sanitizeJavaIdentifier($helper.getPropertyName($field, $project))))
#if ($field.boolean && $field.primitive)
is##
#else
get##
#end
You can’t perform that action at this time.