cz.cuni.mff.d3s.spl.utils.DataUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spl-evaluation-java Show documentation
Show all versions of spl-evaluation-java Show documentation
Stochastice Performance Logic is a formalism for capturing performance
assumptions. It is, for example, possible to capture assumption that
newer version of a function bar is faster than the previous version or
that library foobar is faster than library barfoo when rendering
antialiased text.
The purpose of this framework is to allow evaluation of SPL formulas
inside Java applications.
package cz.cuni.mff.d3s.spl.utils;
import cz.cuni.mff.d3s.spl.data.DataSource;
import cz.cuni.mff.d3s.spl.data.Revision;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DataUtils {
public static Map getRevisionMap(List revisions) {
Map result = new HashMap<>();
for (Revision rev : revisions) {
result.put(rev.name, rev.data);
}
return result;
}
}