Table of Contents

Class Stream<T>

Namespace
Java.Util.Stream
Assembly
MASES.JNet.dll
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
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
Stream<T>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AllMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public bool AllMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

bool

bool

Type Parameters

Arg0objectSuperT

T

AnyMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public bool AnyMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

bool

bool

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>

Supplier

arg1 BiConsumer<R, Arg1objectSuperT>

BiConsumer

arg2 BiConsumer<R, R>

BiConsumer

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

arg0 Collector<Arg0objectSuperT, A, R>

Collector

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

arg0 Stream<Arg0ExtendsT>

Stream

arg1 Stream<Arg1ExtendsT>

Stream

Returns

Stream<T>

Stream

Type Parameters

Arg0ExtendsT

T

Arg1ExtendsT

T

Count()

public long Count()

Returns

long

long

Distinct()

public Stream<T> Distinct()

Returns

Stream<T>

Stream

DropWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public Stream<T> DropWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

Stream<T>

Stream

Type Parameters

Arg0objectSuperT

T

Empty()

public static Stream<T> Empty()

Returns

Stream<T>

Stream

Filter<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public Stream<T> Filter<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

Stream<T>

Stream

Type Parameters

Arg0objectSuperT

T

FindAny()

public Optional<T> FindAny()

Returns

Optional<T>

Optional

FindFirst()

public Optional<T> FindFirst()

Returns

Optional<T>

Optional

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

arg0 Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_DoubleStream>

Function

Returns

DoubleStream

DoubleStream

Type Parameters

Arg0objectSuperT

T

Arg0ExtendsJava_Util_Stream_DoubleStream

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

arg0 Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_IntStream>

Function

Returns

IntStream

IntStream

Type Parameters

Arg0objectSuperT

T

Arg0ExtendsJava_Util_Stream_IntStream

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

arg0 Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_LongStream>

Function

Returns

LongStream

LongStream

Type Parameters

Arg0objectSuperT

T

Arg0ExtendsJava_Util_Stream_LongStream

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

arg0 Function<Arg0objectSuperT, Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_>

Function

Returns

Stream<R>

Stream

Type Parameters

R
Arg0objectSuperT

T

Arg0ExtendsJava_Util_Stream_Stream_Arg0ExtendsR_

Stream<T>

Arg0ExtendsR

R

ForEachOrdered<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)

public void ForEachOrdered<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Consumer<Arg0objectSuperT>

Consumer

Type Parameters

Arg0objectSuperT

T

ForEach<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)

public void ForEach<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Consumer<Arg0objectSuperT>

Consumer

Type Parameters

Arg0objectSuperT

T

Generate<Arg0ExtendsT>(Supplier<Arg0ExtendsT>)

public static Stream<T> Generate<Arg0ExtendsT>(Supplier<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Supplier<Arg0ExtendsT>

Supplier

Returns

Stream<T>

Stream

Type Parameters

Arg0ExtendsT

T

Iterate(T, UnaryOperator<T>)

public static Stream<T> Iterate(T arg0, UnaryOperator<T> arg1)

Parameters

arg0 T

T

arg1 UnaryOperator<T>

UnaryOperator

Returns

Stream<T>

Stream

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 T

T

arg1 Predicate<Arg1objectSuperT>

Predicate

arg2 UnaryOperator<T>

UnaryOperator

Returns

Stream<T>

Stream

Type Parameters

Arg1objectSuperT

T

Limit(long)

public Stream<T> Limit(long arg0)

Parameters

arg0 long

long

Returns

Stream<T>

Stream

MapToDouble<Arg0objectSuperT>(ToDoubleFunction<Arg0objectSuperT>)

public DoubleStream MapToDouble<Arg0objectSuperT>(ToDoubleFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 ToDoubleFunction<Arg0objectSuperT>

ToDoubleFunction

Returns

DoubleStream

DoubleStream

Type Parameters

Arg0objectSuperT

T

MapToInt<Arg0objectSuperT>(ToIntFunction<Arg0objectSuperT>)

public IntStream MapToInt<Arg0objectSuperT>(ToIntFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 ToIntFunction<Arg0objectSuperT>

ToIntFunction

Returns

IntStream

IntStream

Type Parameters

Arg0objectSuperT

T

MapToLong<Arg0objectSuperT>(ToLongFunction<Arg0objectSuperT>)

public LongStream MapToLong<Arg0objectSuperT>(ToLongFunction<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 ToLongFunction<Arg0objectSuperT>

ToLongFunction

Returns

LongStream

LongStream

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

arg0 Function<Arg0objectSuperT, Arg0ExtendsR>

Function

Returns

Stream<R>

Stream

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>

Comparator

Returns

Optional<T>

Optional

Type Parameters

Arg0objectSuperT

T

Min<Arg0objectSuperT>(Comparator<Arg0objectSuperT>)

public Optional<T> Min<Arg0objectSuperT>(Comparator<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Comparator<Arg0objectSuperT>

Comparator

Returns

Optional<T>

Optional

Type Parameters

Arg0objectSuperT

T

NoneMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public bool NoneMatch<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

bool

bool

Type Parameters

Arg0objectSuperT

T

Of(T)

public static Stream<T> Of(T arg0)

Parameters

arg0 T

T

Returns

Stream<T>

Stream

Of(params T[])

public static Stream<T> Of(params T[] arg0)

Parameters

arg0 T[]

T

Returns

Stream<T>

Stream

OfNullable(T)

public static Stream<T> OfNullable(T arg0)

Parameters

arg0 T

T

Returns

Stream<T>

Stream

Peek<Arg0objectSuperT>(Consumer<Arg0objectSuperT>)

public Stream<T> Peek<Arg0objectSuperT>(Consumer<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Consumer<Arg0objectSuperT>

Consumer

Returns

Stream<T>

Stream

Type Parameters

Arg0objectSuperT

T

Reduce(BinaryOperator<T>)

public Optional<T> Reduce(BinaryOperator<T> arg0)

Parameters

arg0 BinaryOperator<T>

BinaryOperator

Returns

Optional<T>

Optional

Reduce(T, BinaryOperator<T>)

public T Reduce(T arg0, BinaryOperator<T> arg1)

Parameters

arg0 T

T

arg1 BinaryOperator<T>

BinaryOperator

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 U

U

arg1 BiFunction<U, Arg1objectSuperT, U>

BiFunction

arg2 BinaryOperator<U>

BinaryOperator

Returns

U

U

Type Parameters

U
Arg1objectSuperT

T

Skip(long)

public Stream<T> Skip(long arg0)

Parameters

arg0 long

long

Returns

Stream<T>

Stream

Sorted()

public Stream<T> Sorted()

Returns

Stream<T>

Stream

Sorted<Arg0objectSuperT>(Comparator<Arg0objectSuperT>)

public Stream<T> Sorted<Arg0objectSuperT>(Comparator<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Comparator<Arg0objectSuperT>

Comparator

Returns

Stream<T>

Stream

Type Parameters

Arg0objectSuperT

T

TakeWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT>)

public Stream<T> TakeWhile<Arg0objectSuperT>(Predicate<Arg0objectSuperT> arg0) where Arg0objectSuperT : T

Parameters

arg0 Predicate<Arg0objectSuperT>

Predicate

Returns

Stream<T>

Stream

Type Parameters

Arg0objectSuperT

T

ToArray()

public object[] ToArray()

Returns

object[]

object

ToArray<A>(IntFunction<A[]>)

public A[] ToArray<A>(IntFunction<A[]> arg0)

Parameters

arg0 IntFunction<A[]>

IntFunction

Returns

A[]

A

Type Parameters

A

Operators

implicit operator Stream(Stream<T>)

Converter from Stream<T> to Stream

public static implicit operator Stream(Stream<T> t)

Parameters

t Stream<T>

Returns

Stream