class RegularTimeSeriesIndex extends AbstractTimeSeriesIndex {

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof TimeSeriesIndex) {
            RegularTimeSeriesIndex otherIndex = (RegularTimeSeriesIndex) obj;
            return startTime == otherIndex.startTime &&
                    endTime == otherIndex.endTime &&
                    spacing == otherIndex.spacing;
        }
        return false;
    }

    public  RegularTimeSeriesIndex(long startTime, long endTime, long spacing);

}