Class InstantFormatter

    • Method Detail

      • isInstantMatching

        public boolean isInstantMatching​(Instant instant1,
                                         Instant instant2)
        Checks if the given Instants are equal from the point of view of the employed formatter.

        This method should be preferred over Instant#equals(Object). For instance, FixedDateFormat and FastDateFormat discard nanoseconds, hence, from their point of view, two different Instants are equal if they match up to millisecond precision.

      • getInternalImplementationClass

        public Class<?> getInternalImplementationClass()