-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored and corrected sorting. Replaced improper TreeMaps by corre…
- Loading branch information
Showing
4 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...-companion/src/main/java/org/tosl/coronawarncompanion/matchentries/DkAndMatchEntries.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.tosl.coronawarncompanion.matchentries; | ||
|
||
import org.tosl.coronawarncompanion.diagnosiskeys.DiagnosisKey; | ||
|
||
public class DkAndMatchEntries implements Comparable<DkAndMatchEntries> { | ||
public final DiagnosisKey dk; | ||
public final MatchEntryContent.GroupedByDkMatchEntries matchEntries; | ||
|
||
public DkAndMatchEntries(DiagnosisKey dk, MatchEntryContent.GroupedByDkMatchEntries matchEntries) { | ||
this.dk = dk; | ||
this.matchEntries = matchEntries; | ||
} | ||
|
||
@Override | ||
public int compareTo(DkAndMatchEntries o) { | ||
return this.matchEntries.getMinStartTimeStampUTC().compareTo(o.matchEntries.getMinStartTimeStampUTC()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters