Go to the documentation of this file.
19package org.sleuthkit.autopsy.timeline.ui.detailview;
21import java.util.Collection;
23import java.util.function.Function;
24import java.util.stream.Collectors;
25import java.util.stream.Stream;
26import org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailViewEvent;
34class StripeFlattener
implements Function<EventNodeBase<?>, Stream<DetailViewEvent>> {
37 public Stream<DetailViewEvent> apply(EventNodeBase<?> node) {
39 Stream.of(node.getEvent()),
40 node.getSubNodes().stream().flatMap(clusterNode
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());
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.