mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
15 lines
311 B
Java
15 lines
311 B
Java
import java.util.stream.Stream;
|
|
|
|
class Test {
|
|
private static class Destination{ }
|
|
|
|
private final Destination destination = new Destination();
|
|
|
|
public void main(Stream<Destination> stream){
|
|
stream.filter(this::notNull);
|
|
}
|
|
|
|
private boolean not<caret>Null(Destination d) {
|
|
return d != null;
|
|
}
|
|
} |