-
返回Stream的amo.lib.linq中的方法
| 修饰符和类型 |
方法 |
说明 |
Stream<T> |
AbstractStream.distinct() |
|
Stream<T> |
Stream.distinct() |
Returns distinct elements from a sequence by using the object equals() to compare values.
|
Stream<TElement> |
Grouping.getElements() |
|
<K> Stream<Grouping<K,T>> |
AbstractStream.groupBy(Selector<T,K> keySelector) |
|
<K,
E> Stream<Grouping<K,E>> |
AbstractStream.groupBy(Selector<T,K> keySelector,
Selector<T,E> elementSelector) |
|
<TKey> Stream<Grouping<TKey,T>> |
Stream.groupBy(Selector<T,TKey> keySelector) |
Groups the elements of a sequence according to a specified key selector function.
|
<TKey,
TElement> Stream<Grouping<TKey,TElement>> |
Stream.groupBy(Selector<T,TKey> keySelector,
Selector<T,TElement> elementSelector) |
Groups the elements of a sequence according to a specified key selector function.
|
<R> Stream<R> |
AbstractStream.select(Selector<T,R> selector) |
|
<TResult> Stream<TResult> |
Stream.select(Selector<T,TResult> selector) |
Projects each element of a sequence into a new form.
|
Stream<T> |
AbstractStream.skip(int count) |
|
Stream<T> |
Stream.skip(int count) |
Skips a specified number of contiguous elements from the start of a sequence then returns remaining elements.
|
static <T> Stream<T> |
Linq.stream(Iterable<T> iterable) |
Decorates the passed iterable with a Stream.
|
static <T> Stream<T> |
Linq.stream(List<T> list) |
Decorates the passed list with a Stream.
|
static <TKey,
TValue> Stream<Map.Entry<TKey,TValue>> |
Linq.stream(Map<TKey,TValue> map) |
Decorates the passed map with a Stream.
|
static <T> Stream<T> |
Linq.stream(T[] array) |
Decorates the passed iterable with a Stream.
|
Stream<T> |
AbstractStream.take(int count) |
|
Stream<T> |
Stream.take(int count) |
Returns a specified number of contiguous elements from the start of a sequence.
|
Stream<T> |
AbstractStream.where(Predicate<T> predicate) |
|
Stream<T> |
Stream.where(Predicate<T> predicate) |
Filters a sequence of values based on a predicate.
|