class LongTimeSeries implements TimeSeries<Long> {

    @JsonIgnore
    public SortedSet<Instant> getInstants() {
        final SortedSet<Instant> instants = new TreeSet<>();
        timeSeries
                .keySet()
                .stream()
                .map(l -> getInstantFromLong(timeBucket, l))
                .forEach(instants::add);
        return instants;
    }

    public  LongTimeSeries(final TimeBucket timeBucket);
    @JsonCreator public  LongTimeSeries(@JsonProperty("timeBucket") final TimeBucket timeBucket,
                          @JsonProperty("timeSeries") final Map<Instant, Long> timeSeries);

}