of


Description:

public static Stream<T> of<T> (T[] values)

Creates a Stream from an array.

Example:

    var s = Stream.of<string> ({ "a", "b", "c" });

Parameters:

values

the source array.

Returns:

a new Stream over array elements.