public boolean During (interval index, long minStart, long maxStart, long minEnd, long maxEnd)
    {
        if ((index.Start.before(CurrentInterval.Start) || index.Start.equals(CurrentInterval.Start))
                &&
                abs(CurrentInterval.Start.getTime() - index.Start.getTime()) >= minStart
                &&
                abs(CurrentInterval.Start.getTime() - index.Start.getTime()) <= maxStart
                &&
                (index.End.after(CurrentInterval.End) || index.End.equals(CurrentInterval.End))
                &&
                abs(CurrentInterval.End.getTime() - index.End.getTime()) >=minEnd
                &&
                abs(CurrentInterval.End.getTime() - index.End.getTime()) <=maxEnd)

        {
            return true;
        }

        else
            return false;
    }