public Spliterator < T > headSpliterator ( T key , boolean inclusive ) { int point = point ( key , ! inclusive ) ; Iterator < T > iterator = subList ( 0 , point ) . iterator ( ) ; return Spliterators . spliterator ( iterator , size ( ) - point , 0 ) ; }
Returns spliterator from start to key