This commit is contained in:
2025-04-17 15:56:06 +08:00
commit 62d1c7a378
18 changed files with 1830 additions and 0 deletions

22
map-pojo.code-snippets Normal file
View 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."
},
}