Class CalendarDate

java.lang.Object
org.ojalgo.type.CalendarDate
All Implemented Interfaces:
Comparable<CalendarDate>, Temporal, TemporalAccessor

public final class CalendarDate extends Object implements Temporal, Comparable<CalendarDate>

Originally, long before Java 8 and its new Date and Time API, this class was designed to provide an immutable complement to the existing Date and Calendar classes and to have easy/direct access to the underlying epoch millisecond value.

In terms of the newer API it most closely corresponds to an Instant, but does not have its nanosecond granularity. At one point the plan was to remove and replace this class with Instant, but working with a single long as an "instant" representation is very practical and efficient.

It has been retrofitted to implement the Temporal interface.

See Also: