Wrapper for working with date intervals in Java