Java Stream of stream(Iterable iterable)

Here you can find the source of stream(Iterable iterable)

Description

stream

License

Apache License

Declaration

public static <T> Stream<T> stream(Iterable<T> iterable) 

Method Source Code


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

import java.util.Spliterator;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

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

Related

  1. stream(Enumeration enumeration)
  2. stream(final Iterator iterator)
  3. stream(Iterable iterable)
  4. stream(Iterable input)
  5. stream(Iterable iterable)
  6. stream(Iterable it)
  7. stream(Iterator iterator)
  8. stream(Object values)
  9. streamEquals(Stream a, Stream b)