[Fix] Allow RootElementSearchResult.oderBy(Comparator) to return this
This commit is contained in:
parent
6345d37155
commit
14b27ca3f2
|
@ -134,6 +134,19 @@ public class RootElementSearchResult<T extends StrolchRootElement> extends Searc
|
||||||
return this;
|
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
|
* <p>Appends a map to the stream which clones the elements in the stream with their version by calling {@link
|
||||||
* StrolchRootElement#getClone(boolean)}</p>
|
* StrolchRootElement#getClone(boolean)}</p>
|
||||||
|
|
Loading…
Reference in New Issue