public static < T > Stream < T > takeUntilInclusive ( Stream < T > source , Predicate < T > condition ) { return takeWhileInclusive ( source , condition . negate ( ) ) ; }
Construct a stream which takes values from the source stream until but including the first value that is encountered which meets the supplied condition .