[Fix] Allow RootElementSearchResult.oderBy(Comparator) to return this

This commit is contained in:
Robert von Burg 2020-06-05 15:45:21 +02:00
parent 6345d37155
commit 14b27ca3f2
1 changed files with 13 additions and 0 deletions

View File

@ -134,6 +134,19 @@ public class RootElementSearchResult<T extends StrolchRootElement> 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<T> orderBy(Comparator<? super T> comparator) {
super.orderBy(comparator);
return this;
}
/**
* <p>Appends a map to the stream which clones the elements in the stream with their version by calling {@link
* StrolchRootElement#getClone(boolean)}</p>