The implementation of this interface may be mutable or immutable. This interface only gives access to retrieve data, never to change it.
Methods in your application should be defined using ReadableInstant
as a parameter if the method only wants to read the instant without needing to know the specific datetime fields.
The {@code compareTo} method is no longer defined in this class in version 2.0.Instead, the definition is simply inherited from the {@code Comparable} interface.This approach is necessary to preserve binary compatibility. The definition of the comparison is ascending order by millisecond instant. Implementors are recommended to extend {@code AbstractInstant} instead of this interface. @author Stephen Colebourne @since 1.0
|
|
|
|