aQute.lib.hierarchy.FolderNode Maven / Gradle / Ivy
The newest version!
package aQute.lib.hierarchy;
import java.util.Optional;
import java.util.stream.Stream;
public interface FolderNode extends NamedNode, Iterable {
NamedNode[] children();
default Stream names() {
return stream().map(NamedNode::name);
}
default Stream stream() {
return Stream.of(children());
}
int size();
Optional get(String name);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy