@Override
    public int hashCode() {

        return timeRange != null ? timeRange.hashCode() : 0;
    }
With time period for Incremental Aggregation.
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/aggregation/Within.java