I'm attempting to build a generic Event class which models a calendar event. The event has either a full start date/time, represented by a Joda DateTime, or just a start date, represented by a Joda LocalDate.
I'd like to make Event generic and simplify a lot of the current if an all-day event then do this otherwise do that logic scattered throughout the code but can't find a superclass of DateTime and LocalDate which still contains useful methods to obtain information such as the start date. Is there some way to do this or do I need to keep my current way of doing things?