class TimeSeries implements Serializable {

    public void setMaximumTickCount(int maximumTickCount) {
        if (subSeries) {
            throw new IllegalStateException("Cannot set a maximum tick count on a sub-series");
        }
        if (maximumTickCount <= 0) {
            throw new IllegalArgumentException("Maximum tick count must be strictly positive");
        }
        this.maximumTickCount = maximumTickCount;
        removeExceedingTicks();
    }

    public  TimeSeries(String name, List<Tick> ticks);
    public  TimeSeries(List<Tick> ticks);
    public  TimeSeries(String name);
    public  TimeSeries();
    private  TimeSeries(String name, List<Tick> ticks, int beginIndex, int endIndex, boolean subSeries);

}