Lesson06 Lambda · Basicprof/basejava@eb4185c · GitHub
Skip to content

Commit eb4185c

Browse files
committed
Lesson06 Lambda
1 parent c2b2de2 commit eb4185c

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/ru/javawebinar/basejava/MainCollections.java

Lines changed: 1 addition & 1 deletion

src/ru/javawebinar/basejava/storage/SortedArrayStorage.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ public int compare(Resume o1, Resume o2) {
1515
}
1616
*/
1717

18-
private static final Comparator<Resume> RESUME_COMPARATOR = new Comparator<Resume>() {
19-
@Override
20-
public int compare(Resume o1, Resume o2) {
21-
return o1.getUuid().compareTo(o2.getUuid());
22-
}
23-
};
18+
private static final Comparator<Resume> RESUME_COMPARATOR = (o1, o2) -> o1.getUuid().compareTo(o2.getUuid());
2419

2520
@Override
2621
protected void fillDeletedElement(int index) {
Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)