public static < T > Stream < T > toIterator ( @ javax . annotation . Nonnull final Iterator < T > iterator ) { return StreamSupport . stream ( Spliterators . spliterator ( iterator , 1 , Spliterator . ORDERED ) , false ) ; }
To iterator stream .