List of usage examples for java.util NavigableSet stream
default Stream<E> stream()
From source file:org.apache.cassandra.db.lifecycle.LogFile.java
private static Set<File> getRecordFiles(NavigableSet<File> files, LogRecord record) { String fileName = record.fileName(); return files.stream().filter(f -> f.getName().startsWith(fileName)).collect(Collectors.toSet()); }
From source file:org.starnub.starnubserver.pluggable.PluggableManager.java
public ReturnableList<PluggableReturn> loadAllCommands(boolean enable) { NavigableSet<UnloadedPluggable> upSet = commandScan(true); ReturnableList<PluggableReturn> cSuccess = new ReturnableList<>(); upSet.stream().forEach(up -> { String upName = up.getDetails().getNAME(); PluggableReturn pls = loadPluggable(upName, up, enable); cSuccess.add(pls);// ww w . ja va 2s .c om }); return cSuccess; }
From source file:org.starnub.starnubserver.pluggable.PluggableManager.java
public ReturnableList<PluggableReturn> loadAllPlugins(boolean enable) { NavigableSet<UnloadedPluggable> upSet = pluginScan(true); ReturnableList<PluggableReturn> pSuccess = new ReturnableList<>(); upSet.stream().forEach(up -> { String upName = up.getDetails().getNAME(); PluggableReturn pls = loadPluggable(upName, up, enable); pSuccess.add(pls);/*from w w w.j a v a 2 s .c om*/ }); return pSuccess; }