20250417
This commit is contained in:
22
map-pojo.code-snippets
Normal file
22
map-pojo.code-snippets
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"Getter of MapPojo's field": {
|
||||
"scope": "java",
|
||||
"prefix": "getterOfMapPojo",
|
||||
"body": [
|
||||
"public ${3:String} get${2:FieldName}() {",
|
||||
" return (${3:String}) this.fields.get(\"${1:field_name}\");",
|
||||
"}",
|
||||
],
|
||||
"description": "Getter of MapPojo's field."
|
||||
},
|
||||
"Setter of MapPojo's field": {
|
||||
"scope": "java",
|
||||
"prefix": "setterOfMapPojo",
|
||||
"body": [
|
||||
"public ${5:Pojo} set${3:FieldName}(String ${2:fieldName}) {",
|
||||
" this.fields.put(\"${1:field_name}\", ${2:fieldName});${4:\n return this;}",
|
||||
"}",
|
||||
],
|
||||
"description": "Setter of MapPojo's field."
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user