Skip to content

Commit

Permalink
Added more to functions, methods, and subroutines to Java 17, 15, 11
Browse files Browse the repository at this point in the history
  • Loading branch information
tpenn committed Oct 1, 2023
1 parent 86f3ea9 commit 6c36f00
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/thesauruses/java/11/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"name": "Anonymous function that takes 1 or more defined parameters",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n}"
},
"anonymous_function_no_parameters_with_return": {
"name": "Anonymous function that takes no parameters and returns a value",
"code": "() -> //single line expression/value\n\n() ->\n{\n\t//multiple lines of code\n\treturn returnValue;\n}"
},
"anonymous_function_with_parameters_with_return": {
"name": "Anonymous function that takes 1 or more defined parameters and returns a value",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n\treturn returnValue;\n}"
},
"call_subroutine": {
"name": "Call subroutine",
"code": "MyClass x = new MyClass();\nx.subRoutine();"
Expand Down
8 changes: 8 additions & 0 deletions web/thesauruses/java/15/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"name": "Anonymous function that takes 1 or more defined parameters",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n}"
},
"anonymous_function_no_parameters_with_return": {
"name": "Anonymous function that takes no parameters and returns a value",
"code": "() -> //single line expression/value\n\n() ->\n{\n\t//multiple lines of code\n\treturn returnValue;\n}"
},
"anonymous_function_with_parameters_with_return": {
"name": "Anonymous function that takes 1 or more defined parameters and returns a value",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n\treturn returnValue;\n}"
},
"call_subroutine": {
"name": "Call subroutine",
"code": "MyClass x = new MyClass();\nx.subRoutine();"
Expand Down
8 changes: 8 additions & 0 deletions web/thesauruses/java/17/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
"name": "Anonymous function that takes 1 or more defined parameters",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n}"
},
"anonymous_function_no_parameters_with_return": {
"name": "Anonymous function that takes no parameters and returns a value",
"code": "() -> //single line expression/value\n\n() ->\n{\n\t//multiple lines of code\n\treturn returnValue;\n}"
},
"anonymous_function_with_parameters_with_return": {
"name": "Anonymous function that takes 1 or more defined parameters and returns a value",
"code": "(parameterName1, parameterName2) ->\n{\n\t//code\n\treturn returnValue;\n}"
},
"call_subroutine": {
"name": "Call subroutine",
"code": "MyClass x = new MyClass();\nx.subRoutine();"
Expand Down

0 comments on commit 6c36f00

Please sign in to comment.