Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Java8Practies
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Uma Vani Ravuri
Java8Practies
Commits
11c2438e
Commit
11c2438e
authored
3 years ago
by
Uma Vani Ravuri
Browse files
Options
Downloads
Patches
Plain Diff
Replace Employee.java
parent
9a5c37e4
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Java8PractiesProgram/src/com/java8/practies/Employee.java
+1
-8
1 addition, 8 deletions
Java8PractiesProgram/src/com/java8/practies/Employee.java
with
1 addition
and
8 deletions
Java8PractiesProgram/src/com/java8/practies/Employee.java
+
1
−
8
View file @
11c2438e
package
com.java8.practies
;
package
com.java8.practies
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
public
class
Employee
implements
Comparator
<
Employee
>
{
public
class
Employee
{
String
id
;
String
id
;
String
firstName
;
String
firstName
;
...
@@ -63,10 +62,4 @@ public class Employee implements Comparator<Employee>{
...
@@ -63,10 +62,4 @@ public class Employee implements Comparator<Employee>{
+
departmentNames
+
"]"
;
+
departmentNames
+
"]"
;
}
}
@Override
public
int
compare
(
Employee
o1
,
Employee
o2
)
{
return
o1
.
firstName
.
compareTo
(
o2
.
firstName
);
}
}
}
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