com.nitorcreations.willow.metrics.SeriesData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of willow-servers Show documentation
Show all versions of willow-servers Show documentation
Willow operational servlets and servers
The newest version!
package com.nitorcreations.willow.metrics;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@SuppressFBWarnings(value={"URF_UNREAD_FIELD"}, justification="Field used in serialization")
public class SeriesData {
String key;
List> values = new ArrayList<>();
Map pointsAsMap() {
Map ret = new LinkedHashMap<>();
for (Point next : values) {
ret.put(next.x, next.y);
}
return ret;
}
}