Java Stream of streamOf(Iterable it)

Here you can find the source of streamOf(Iterable it)

Description

stream Of

License

Apache License

Declaration

public static <T> Stream<T> streamOf(Iterable<T> it) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.stream.*;

public class Main {
    public static <T> Stream<T> streamOf(Iterable<T> it) {
        return StreamSupport.stream(it.spliterator(), false);
    }/*from w ww  . j av a 2 s .  c  o  m*/
}

Related

  1. stream(Iterator iterator)
  2. stream(Object values)
  3. streamEquals(Stream a, Stream b)
  4. streamInt(int max)
  5. streamOf (final Iterable iterable)
  6. streamOf(Iterable iterable)
  7. streamof(Iterable vals)
  8. streamOf(T value)
  9. streamOfEnumeration(Enumeration e, boolean parallel)