Revision 43808
Added by Sandro La Bruzzo over 7 years ago
WorkflowsController.java | ||
---|---|---|
413 | 413 |
} |
414 | 414 |
} |
415 | 415 |
|
416 |
return map.values().stream().sorted(new Comparator<ProcessInfo>() { |
|
417 |
|
|
418 |
@Override |
|
419 |
public int compare(final ProcessInfo p1, final ProcessInfo p2) { |
|
420 |
if (p1.getDate() == 0) { |
|
421 |
return -1; |
|
422 |
} else if (p2.getDate() == 0) { |
|
423 |
return 1; |
|
424 |
} else { |
|
425 |
return Long.compare(p2.getDate(), p1.getDate()); |
|
426 |
} |
|
416 |
return map.values().stream().sorted((p1, p2) -> { |
|
417 |
if (p1.getDate() == 0) { |
|
418 |
return -1; |
|
419 |
} else if (p2.getDate() == 0) { |
|
420 |
return 1; |
|
421 |
} else { |
|
422 |
return Long.compare(p2.getDate(), p1.getDate()); |
|
427 | 423 |
} |
428 | 424 |
}).collect(Collectors.toList()); |
429 | 425 |
} |
Also available in: Unified diff
added Filter on listValues function to filter the Title of the transformation rules