Class Stream<T>
public class Stream<T> : BaseStream<T, Stream<T>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IStream<T>, IBaseStream<T, Stream<T>>, IAutoCloseable
Type Parameters
T
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>BaseStream<T, Stream<T>>Stream<T>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinitionIStream<T>IBaseStream<T, Stream<T>>
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])JVMBridgeBase<AutoCloseable>.DynBridgeClazzJVMBridgeBase<AutoCloseable>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Stream()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("Stream class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Stream()
Stream(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("Stream class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Stream(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
AllMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public bool AllMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
AnyMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public bool AnyMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Collect<R, Arg1objectSuperT>(Supplier<R>, BiConsumer<R, Arg1objectSuperT>, BiConsumer<R, R>)
public R Collect<R, Arg1objectSuperT>(Supplier<R> arg0, BiConsumer<R, Arg1objectSuperT> arg1, BiConsumer<R, R> arg2) where Arg1objectSuperT : T
Parameters
arg0
Supplier<R>arg1
BiConsumer<R, Arg1objectSuperT>arg2
BiConsumer<R, R>
Returns
- R
R
Type Parameters
R
Arg1objectSuperT
T
Collect<R, Arg0objectSuperT, A>(Collector<Arg0objectSuperT, A, R>)
public R Collect<R, Arg0objectSuperT, A>(Collector<Arg0objectSuperT, A, R> arg0) where Arg0objectSuperT : T
Parameters
Returns
- R
R
Type Parameters
R
Arg0objectSuperT
T
A
Concat<Arg0ExtendsT, Arg1ExtendsT>(Stream<Arg0ExtendsT>, Stream<Arg1ExtendsT>)
public static Stream<T> Concat<Arg0ExtendsT, Arg1ExtendsT>(Stream<Arg0ExtendsT> arg0, Stream<Arg1ExtendsT> arg1) where Arg0ExtendsT : T where Arg1ExtendsT : T
Parameters
Returns
Type Parameters
Arg0ExtendsT
T
Arg1ExtendsT
T
Count()
public long Count()
Returns
Distinct()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/stream/Stream.html#distinct()
public Stream<T> Distinct()
Returns
DropWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public Stream<T> DropWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Empty()
public static Stream<T> Empty()
Returns
Filter<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public Stream<T> Filter<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
FindAny()
public Optional<T> FindAny()
Returns
FindFirst()
public Optional<T> FindFirst()
Returns
FlatMapToDouble<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_DoubleStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_DoubleStream>)
public DoubleStream FlatMapToDouble<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_DoubleStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_DoubleStream> arg0) where Arg0objectSuperT : T where Arg0ExtendsJava_Util_Stream_DoubleStream : DoubleStream
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Arg0ExtendsJava_Util_Stream_DoubleStream
FlatMapToInt<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_IntStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_IntStream>)
public IntStream FlatMapToInt<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_IntStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_IntStream> arg0) where Arg0objectSuperT : T where Arg0ExtendsJava_Util_Stream_IntStream : IntStream
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Arg0ExtendsJava_Util_Stream_IntStream
FlatMapToLong<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_LongStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_LongStream>)
public LongStream FlatMapToLong<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_LongStream>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_LongStream> arg0) where Arg0objectSuperT : T where Arg0ExtendsJava_Util_Stream_LongStream : LongStream
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Arg0ExtendsJava_Util_Stream_LongStream
FlatMap<R, Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_, Arg0ExtendsR>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_>)
public Stream<R> FlatMap<R, Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_, Arg0ExtendsR>(Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_> arg0) where Arg0objectSuperT : T where Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_ : Stream<Arg0ExtendsR> where Arg0ExtendsR : R
Parameters
Returns
Type Parameters
R
Arg0objectSuperT
T
Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_
Arg0ExtendsR
R
ForEachOrdered<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)
public void ForEachOrdered<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Type Parameters
Arg0objectSuperT
T
ForEach<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)
public void ForEach<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Type Parameters
Arg0objectSuperT
T
Generate<Arg0ExtendsT>(Supplier<Arg0ExtendsT>)
public static Stream<T> Generate<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0) where Arg0ExtendsT : T
Parameters
Returns
Type Parameters
Arg0ExtendsT
T
Iterate(T, UnaryOperator<T>)
public static Stream<T> Iterate(T arg0, UnaryOperator<T> arg1)
Parameters
arg0
TT
arg1
UnaryOperator<T>
Returns
Iterate<Arg1objectSuperT>(T, Predicate<Arg1objectSuperT>, UnaryOperator<T>)
public static Stream<T> Iterate<Arg1objectSuperT>(T arg0, Predicate<Arg1objectSuperT> arg1, UnaryOperator<T> arg2) where Arg1objectSuperT : T
Parameters
arg0
TT
arg1
Predicate<Arg1objectSuperT>arg2
UnaryOperator<T>
Returns
Type Parameters
Arg1objectSuperT
T
Limit(long)
public Stream<T> Limit(long arg0)
Parameters
Returns
MapToDouble<Arg0objectSuperT>(ToDoubleFunction<Arg0objectSuperT>)
public DoubleStream MapToDouble<Arg0objectSuperT>(ToDoubleFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
ToDoubleFunction<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
MapToInt<Arg0objectSuperT>(ToIntFunction<Arg0objectSuperT>)
public IntStream MapToInt<Arg0objectSuperT>(ToIntFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
ToIntFunction<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
MapToLong<Arg0objectSuperT>(ToLongFunction<Arg0objectSuperT>)
public LongStream MapToLong<Arg0objectSuperT>(ToLongFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
ToLongFunction<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
Map<R, Arg0objectSuperT, Arg0ExtendsR>(Function<Arg0objectSuperT, Arg0ExtendsR>)
public Stream<R> Map<R, Arg0objectSuperT, Arg0ExtendsR>(Function<Arg0objectSuperT, Arg0ExtendsR> arg0) where Arg0objectSuperT : T where Arg0ExtendsR : R
Parameters
Returns
Type Parameters
R
Arg0objectSuperT
T
Arg0ExtendsR
R
Max<Arg0objectSuperT>(Comparator<Arg0objectSuperT>)
public Optional<T> Max<Arg0objectSuperT>(Comparator<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
Comparator<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
Min<Arg0objectSuperT>(Comparator<Arg0objectSuperT>)
public Optional<T> Min<Arg0objectSuperT>(Comparator<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
Comparator<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
NoneMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public bool NoneMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Of(T)
public static Stream<T> Of(T arg0)
Parameters
arg0
TT
Returns
Of(params T[])
public static Stream<T> Of(params T[] arg0)
Parameters
arg0
T[]T
Returns
OfNullable(T)
public static Stream<T> OfNullable(T arg0)
Parameters
arg0
TT
Returns
Peek<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)
public Stream<T> Peek<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
Reduce(BinaryOperator<T>)
public Optional<T> Reduce(BinaryOperator<T> arg0)
Parameters
arg0
BinaryOperator<T>
Returns
Reduce(T, BinaryOperator<T>)
public T Reduce(T arg0, BinaryOperator<T> arg1)
Parameters
arg0
TT
arg1
BinaryOperator<T>
Returns
- T
T
Reduce<U, Arg1objectSuperT>(U, BiFunction<U, Arg1objectSuperT, U>, BinaryOperator<U>)
public U Reduce<U, Arg1objectSuperT>(U arg0, BiFunction<U, Arg1objectSuperT, U> arg1, BinaryOperator<U> arg2) where Arg1objectSuperT : T
Parameters
arg0
UU
arg1
BiFunction<U, Arg1objectSuperT, U>arg2
BinaryOperator<U>
Returns
- U
U
Type Parameters
U
Arg1objectSuperT
T
Skip(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/stream/Stream.html#skip(long)
public Stream<T> Skip(long arg0)
Parameters
Returns
Sorted()
public Stream<T> Sorted()
Returns
Sorted<Arg0objectSuperT>(Comparator<Arg0objectSuperT>)
public Stream<T> Sorted<Arg0objectSuperT>(Comparator<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
arg0
Comparator<Arg0objectSuperT>
Returns
Type Parameters
Arg0objectSuperT
T
TakeWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)
public Stream<T> TakeWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T
Parameters
Returns
Type Parameters
Arg0objectSuperT
T
ToArray()
public object[] ToArray()
Returns
ToArray<A>(IntFunction<A[]>)
public A[] ToArray<A>(IntFunction<A[]> arg0)
Parameters
arg0
IntFunction<A[]>
Returns
- A[]
A
Type Parameters
A
Operators
implicit operator Stream(Stream<T>)
public static implicit operator Stream(Stream<T> t)
Parameters
t
Stream<T>