Class TimePointImpl

  • All Implemented Interfaces:
    TimePoint

    public class TimePointImpl
    extends Object
    implements TimePoint
    Author:
    Sergey.Anchipolevsky Date: 20.06.2007
    • Constructor Detail

      • TimePointImpl

        public TimePointImpl​(long relativeSeconds)
      • TimePointImpl

        public TimePointImpl​(@NotNull
                             Date base,
                             long relativeSeconds)
    • Method Detail

      • getAbsoluteTime

        @NotNull
        public Date getAbsoluteTime()
        Description copied from interface: TimePoint
        Returns the absolute time of the time point.
        Specified by:
        getAbsoluteTime in interface TimePoint
        Returns:
        see above
      • getRelativeSeconds

        public long getRelativeSeconds()
        Description copied from interface: TimePoint
        Returns the number of seconds from the time base. If the value is negative the time point is prior to the time base.
        Specified by:
        getRelativeSeconds in interface TimePoint
        Returns:
        see above
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object