All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.willow.metrics.SeriesData Maven / Gradle / Ivy

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy