Project

General

Profile

« Previous | Next » 

Revision 46493

shorter name

View differences:

modules/dnet-springboot-apps/trunk/dnet-common-utils/src/main/java/eu/dnetlib/miscutils/streams/DnetStreamSupport.java
11 11
 */
12 12
public class DnetStreamSupport {
13 13

  
14
	@Deprecated
14 15
	public static <T> Stream<T> generateStreamFromIterator(Iterator<T> iterator) {
15 16
		return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, Spliterator.ORDERED), false);
16 17
	}
17 18

  
19
	public static <T> Stream<T> stream(Iterator<T> iterator) {
20
		return generateStreamFromIterator(iterator);
21
	}
22

  
18 23
}

Also available in: Unified diff