Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
demo-project-git-operations
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Naren Medarametla
demo-project-git-operations
Commits
48cbf25e
Commit
48cbf25e
authored
5 years ago
by
Srinivas Kota
Browse files
Options
Downloads
Patches
Plain Diff
skota@nisum.com::epe-001:: promotion engine :: code clean up in resource file.
parent
3f98dc7e
1 merge request
!2
Employee branch srinivas
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/nisum/epe/demo/srinivas/Resource.java
+4
-4
4 additions, 4 deletions
src/main/java/com/nisum/epe/demo/srinivas/Resource.java
with
4 additions
and
4 deletions
src/main/java/com/nisum/epe/demo/srinivas/Resource.java
+
4
−
4
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 E
mployee
details"
);
//
System.out.println("
e
mployee
Name = " + 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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment