From 14b27ca3f222b80d6793bb35c2bcd3083ac33111 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 5 Jun 2020 15:45:21 +0200 Subject: [PATCH] [Fix] Allow RootElementSearchResult.oderBy(Comparator) to return this --- .../li/strolch/search/RootElementSearchResult.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java b/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java index 9728d9811..31ae91300 100644 --- a/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java +++ b/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java @@ -134,6 +134,19 @@ public class RootElementSearchResult extends Searc return this; } + /** + * appends a comparator to this stream + * + * @param comparator + * the comparator to append to the stream + * + * @return this for chaining + */ + public RootElementSearchResult orderBy(Comparator comparator) { + super.orderBy(comparator); + return this; + } + /** *

Appends a map to the stream which clones the elements in the stream with their version by calling {@link * StrolchRootElement#getClone(boolean)}