程序包 amo.lib.linq
类 Linq
java.lang.Object
amo.lib.linq.Linq
public final class Linq extends Object
-
方法概要
修饰符和类型 方法 说明 static <T> Stream<T>stream(Iterable<T> iterable)Decorates the passediterablewith a Stream.static <T> Stream<T>stream(List<T> list)Decorates the passedlistwith a Stream.static <TKey, TValue>
Stream<Map.Entry<TKey,TValue>>stream(Map<TKey,TValue> map)Decorates the passedmapwith a Stream.static <T> Stream<T>stream(T[] array)Decorates the passediterablewith a Stream.
-
方法详细资料
-
stream
Decorates the passediterablewith a Stream.- 类型参数:
T- the generic type of thearray- 参数:
array- a generic typed iterable (usually implementing theCollectioninterface)- 返回:
- a new Stream object that decorates the passed
array
-
stream
Decorates the passedlistwith a Stream.- 类型参数:
T- the generic type of thelist- 参数:
list- a generic typed list (usually implementing theListinterface)- 返回:
- a new Stream object that decorates the passed
list
-
stream
Decorates the passediterablewith a Stream.- 类型参数:
T- the generic type of theiterable- 参数:
iterable- a generic typed iterable (usually implementing theCollectioninterface)- 返回:
- a new Stream object that decorates the passed
iterable
-
stream
Decorates the passedmapwith a Stream.- 类型参数:
TKey- the generic type of themapkeyTValue- the generic type for themapvalue- 参数:
map- a generic typed map.- 返回:
- a new Stream object that decorates the passed
mapentry set - 另请参阅:
Map.entrySet()
-