else {
throw new IllegalArgumentException("Unable to handle pointer type " + pointer);
}
}
_currentMutableInterval = new MutableInterval(rangeStart, Time.cloneAndAdd(rangeStart, Time.SECOND,(int) _range.getWidth()));
}
else {
if (pointer == Pointer.PointerType.FUTURE) {
// WARN: Does not use DateTime
_currentMutableInterval = new MutableInterval( _currentMutableInterval.getStart().plusSeconds(FULL_DAY_SECONDS),
_currentMutableInterval.getEnd().plusSeconds(FULL_DAY_SECONDS));
}
else if (pointer == Pointer.PointerType.PAST) {
// WARN: Does not use DateTime
_currentMutableInterval = new MutableInterval( _currentMutableInterval.getStart().minusSeconds(FULL_DAY_SECONDS),
_currentMutableInterval.getEnd().minusSeconds(FULL_DAY_SECONDS));
}
else {
throw new IllegalArgumentException("Unable to handle pointer type " + pointer);
}