Class TimeIntervalImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.TimeIntervalImpl
-
- All Implemented Interfaces:
TimeInterval
public class TimeIntervalImpl extends Object implements TimeInterval
- Author:
- Sergey.Anchipolevsky Date: 20.06.2007
-
-
Constructor Summary
Constructors Constructor Description TimeIntervalImpl()creates infinite time interval (never starts, never finishes)TimeIntervalImpl(long willStartInSec, Long durationSec)TimeIntervalImpl(Date base, long willStartInSec, Long durationSec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetDurationSeconds()Returns the difference between the starting and ending points in seconds.TimePointgetEndPoint()Returns the ending point for the interval.TimePointgetStartPoint()Returns the starting point for the interval.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TimeIntervalImpl
public TimeIntervalImpl(long willStartInSec, @Nullable Long durationSec)
-
TimeIntervalImpl
public TimeIntervalImpl(@NotNull Date base, long willStartInSec, @Nullable Long durationSec)
-
TimeIntervalImpl
public TimeIntervalImpl()
creates infinite time interval (never starts, never finishes)
-
-
Method Detail
-
getStartPoint
@NotNull public TimePoint getStartPoint()
Description copied from interface:TimeIntervalReturns the starting point for the interval.- Specified by:
getStartPointin interfaceTimeInterval- Returns:
- see above
-
getEndPoint
@Nullable public TimePoint getEndPoint()
Description copied from interface:TimeIntervalReturns the ending point for the interval. May be null if the interval is open.- Specified by:
getEndPointin interfaceTimeInterval- Returns:
- see above
-
getDurationSeconds
public Long getDurationSeconds()
Description copied from interface:TimeIntervalReturns the difference between the starting and ending points in seconds. May be null when the interval is open (no end point).- Specified by:
getDurationSecondsin interfaceTimeInterval- Returns:
- see above
-
-