class TimeSeries implements Serializable {

    public String getSeriesPeriodDescription() {
        StringBuilder sb = new StringBuilder();
        if (!ticks.isEmpty()) {
            final String timeFormat = "hh:mm dd/MM/yyyy";
            Tick firstTick = getFirstTick();
            Tick lastTick = getLastTick();
            sb.append(firstTick.getEndTime().toString(timeFormat))
                    .append(" - ")
                    .append(lastTick.getEndTime().toString(timeFormat));
        }
        return sb.toString();
    }

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

}