mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 17:56:55 +07:00
GitOrigin-RevId: d632f6dfffdbfe8912882f30c9bd203e95362a54
21 lines
459 B
Java
21 lines
459 B
Java
package org.example;
|
|
|
|
import java.io.File;
|
|
import java.util.Collection;
|
|
|
|
class Parent {
|
|
public boolean test(Collection<File> files) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
class Child extends Parent {
|
|
|
|
@Override
|
|
public boolean test(Collection<File> files) {
|
|
return files.stream().allMatch(file -> {
|
|
String name = file.getName();
|
|
return <selection>name.endsWith("jar") || name.endsWith("tar")</selection>;
|
|
});
|
|
}
|
|
} |