Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
demo-project-git-operations
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Naren Medarametla
demo-project-git-operations
Commits
48cbf25e
Commit
48cbf25e
authored
May 26, 2020
by
Srinivas Kota
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skota@nisum.com::epe-001:: promotion engine :: code clean up in resource file.
parent
3f98dc7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Resource.java
src/main/java/com/nisum/epe/demo/srinivas/Resource.java
+4
-4
No files found.
src/main/java/com/nisum/epe/demo/srinivas/Resource.java
View file @
48cbf25e
...
...
@@ -16,20 +16,20 @@ public class Resource {
@RequestMapping
(
"/saveEmployeeDetails"
)
public
void
saveEmployeeDetails
(
@RequestBody
Employee
employee
)
{
System
.
out
.
println
(
"Save Employee details"
);
//
System.out.println("Save Employee details");
buildEmployeeDetails
().
add
(
employee
);
employees
.
forEach
(
System
.
out
::
println
);
System
.
out
.
println
(
employee
.
toString
());
//
System.out.println(employee.toString());
}
@RequestMapping
(
"/getEmployeeDetails"
)
public
void
getmployeeDetails
(
@RequestParam
String
employeeName
)
{
System
.
out
.
println
(
"Get Employee details"
);
//System.out.println("employeeName = " + employeeName
);
List
<
Employee
>
employeeList
=
buildEmployeeDetails
().
stream
()
.
filter
(
employee
->
employee
.
getEmpName
().
equalsIgnoreCase
(
employeeName
))
.
collect
(
Collectors
.
toList
());
employeeList
.
forEach
(
System
.
out
::
println
);
System
.
out
.
println
(
employeeName
);
//
System.out.println(employeeName);
}
private
List
<
Employee
>
buildEmployeeDetails
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment