public < K > StreamEx < T > filterBy ( Function < ? super T , ? extends K > mapper , K value ) { return value == null ? filter ( t -> mapper . apply ( t ) == null ) : filter ( t -> value . equals ( mapper . apply ( t ) ) ) ; }
Returns a stream consisting of the elements of this stream for which the supplied mapper function returns the given value .