Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
Java8Practies
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
0
Merge Requests
0
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
Uma Vani Ravuri
Java8Practies
Commits
11c2438e
Commit
11c2438e
authored
3 years ago
by
Uma Vani Ravuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace Employee.java
parent
9a5c37e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
Employee.java
Java8PractiesProgram/src/com/java8/practies/Employee.java
+1
-8
No files found.
Java8PractiesProgram/src/com/java8/practies/Employee.java
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.
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