mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
16 lines
317 B
Plaintext
16 lines
317 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){
|
|
stream.filter(destination::notNull);
|
|
}
|
|
|
|
} |