mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
331 B
Plaintext
16 lines
331 B
Plaintext
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
private static class Destination{
|
|
private boolean notNull(String it) {
|
|
return it != null;
|
|
}
|
|
}
|
|
|
|
private final Destination destination = new Destination();
|
|
|
|
public void main(Stream<String> stream, Test ref){
|
|
stream.filter(ref.destination::notNull);
|
|
}
|
|
|
|
} |