public static < T > Stream < T > skipWhileInclusive ( Stream < T > source , Predicate < T > condition ) { return StreamSupport . stream ( SkipUntilSpliterator . overInclusive ( source . spliterator ( ) , condition . negate ( ) ) , false ) . onClose ( source :: close ) ; }
Construct a stream which skips values from the source stream up until but including the first value is found that does not meet the given condition .