Commit 70a55615 authored by Jan Kožusznik's avatar Jan Kožusznik

code: helper adapter

parent 6569d2c1
package cz.it4i.fiji.haas_spim_benchmark.core;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
import cz.it4i.fiji.haas_java_client.SynchronizableFileType;
public class SPIMComputationAccessorAdapter implements SPIMComputationAccessor {
public List<String> getActualOutput(List<SynchronizableFileType> content) {
return mapCollect(content, c -> "");
public List<Long> getFileSizes(List<String> names) {
return mapCollect(names, s -> 0l);
public List<String> getFileContents(List<String> logs) {
return mapCollect(logs, s -> "");
public Collection<String> getChangedFiles() {
return Collections.emptyList();
private <U, V> List<V> mapCollect(List<U> input, Function<U, V> map) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment