Class TimestampConverter


  • @Immutable
    public final class TimestampConverter
    extends java.lang.Object
    This class provides a mechanism for converting nanoTime values to Timestamp.
    • Field Detail

      • timestamp

        private final Timestamp timestamp
      • nanoTime

        private final long nanoTime
    • Constructor Detail

      • TimestampConverter

        private TimestampConverter​(Timestamp timestamp,
                                   long nanoTime)
    • Method Detail

      • convertNanoTime

        public Timestamp convertNanoTime​(long nanoTime)
        Converts a nanoTime value to Timestamp.
        Parameters:
        nanoTime - value to convert.
        Returns:
        the Timestamp representation of the time.