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