computeDataAsync(fCurrentTimeRange, durationRange).thenAccept((data) -> applyData(data));
}
- private CompletableFuture<List<ISegment>> computeDataAsync(final TmfTimeRange timeRange, final Range durationRange) {
+ private CompletableFuture<@Nullable List<ISegment>> computeDataAsync(final TmfTimeRange timeRange, final Range durationRange) {
return CompletableFuture.supplyAsync(() -> computeData(timeRange, durationRange));
}
return input != null && input.getLength() >= durationRange.lower && input.getLength() <= durationRange.upper;
}
};
- intersectingElements = Iterators.<ISegment> filter(intersectingElements, predicate);
+ intersectingElements = Iterators.filter(intersectingElements, predicate);
}
return Lists.newArrayList(intersectingElements);
--- /dev/null
+class java/util/concurrent/CompletableFuture
+supplyAsync
+ <U:Ljava/lang/Object;>(Ljava/util/function/Supplier<TU;>;)Ljava/util/concurrent/CompletableFuture<TU;>;
+ <U:Ljava/lang/Object;>(Ljava/util/function/Supplier<TU;>;)L1java/util/concurrent/CompletableFuture<TU;>;
+supplyAsync
+ <U:Ljava/lang/Object;>(Ljava/util/function/Supplier<TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<TU;>;
+ <U:Ljava/lang/Object;>(Ljava/util/function/Supplier<TU;>;Ljava/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture<TU;>;