19 package org.sleuthkit.autopsy.timeline.ui.detailview;
21 import java.util.Collection;
22 import java.util.List;
23 import java.util.function.Function;
24 import java.util.stream.Collectors;
25 import java.util.stream.Stream;
34 class StripeFlattener
implements Function<EventNodeBase<?>, Stream<DetailViewEvent>> {
41 -> clusterNode.getSubNodes().stream().flatMap(
this)));
44 static public List<DetailViewEvent> flatten(Collection<
EventNodeBase<?>> nodes) {
45 return nodes.stream().flatMap(
new StripeFlattener()).collect(Collectors.toList());
abstract List< EventNodeBase<?> > getSubNodes()