mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
# community/plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/models/PackageSearchDataService.kt GitOrigin-RevId: 354b78805afe88cc82a7c4527bf7569b8a4a25d0
1.4 KiB
1.4 KiB
| 1 | #version 1 name,version 1 semantic part,version 1 stability,version 1 releaseDate,version 2 name,version 2 semantic part,version 2 stability,version 2 releaseDate,expected compareTo result |
|---|---|
| 2 | #Name is prioritized over timestamp if they're not the same |
| 3 | 1.0.0,1.0.0,%%NULL%%,222222,2.0.0,2.0.0,%%NULL%%,111111,-1 |
| 4 | 1.0.0-b01,1.0.0,-b01,222222,1.0.0,1.0.0,%%NULL%%,111111,-1 |
| 5 | #If same name and only one of the two has a timestamp, that comes first |
| 6 | 1.0.0,1.0.0,%%NULL%%,%%NULL%%,1.0.0,1.0.0,%%NULL%%,111111,-1 |
| 7 | 1.0.0-b01,1.0.0,-b01,%%NULL%%,1.0.0-b01,1.0.0,-b01,111111,-1 |
| 8 | 1.0.0,1.0.0,%%NULL%%,111111,1.0.0,1.0.0,%%NULL%%,%%NULL%%,1 |
| 9 | 1.0.0-b01,1.0.0,-b01,111111,1.0.0-b01,1.0.0,-b01,%%NULL%%,1 |
| 10 | #If same name and neither has a timestamp, they are identical |
| 11 | 1.0.0,1.0.0,%%NULL%%,%%NULL%%,1.0.0,1.0.0,%%NULL%%,%%NULL%%,0 |
| 12 | 1.0.0-b01,1.0.0,-b01,%%NULL%%,1.0.0-b01,1.0.0,-b01,%%NULL%%,0 |
| 13 | 1.0.0,1.0.0,%%NULL%%,%%NULL%%,1.0.0,1.0.0,%%NULL%%,%%NULL%%,0 |
| 14 | 1.0.0-b01,1.0.0,-b01,%%NULL%%,1.0.0-b01,1.0.0,-b01,%%NULL%%,0 |
| 15 | #If same name and both have a timestamp, they are compared by timestamp |
| 16 | 1.0.0,1.0.0,%%NULL%%,111111,1.0.0,1.0.0,%%NULL%%,222222,-1 |
| 17 | 1.0.0-b01,1.0.0,-b01,111111,1.0.0-b01,1.0.0,-b01,222222,-1 |
| 18 | 1.0.0,1.0.0,%%NULL%%,222222,1.0.0,1.0.0,%%NULL%%,111111,1 |
| 19 | 1.0.0-b01,1.0.0,-b01,222222,1.0.0-b01,1.0.0,-b01,111111,1 |
| 20 | 1.0.0,1.0.0,%%NULL%%,111111,1.0.0,1.0.0,%%NULL%%,111111,0 |
| 21 | 1.0.0-b01,1.0.0,-b01,111111,1.0.0-b01,1.0.0,-b01,111111,0 |