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 boolean
equals(Object o)
Long
getDurationSeconds()
Returns the difference between the starting and ending points in seconds.TimePoint
getEndPoint()
Returns the ending point for the interval.TimePoint
getStartPoint()
Returns the starting point for the interval.int
hashCode()
String
toString()
-
-
-
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:TimeInterval
Returns the starting point for the interval.- Specified by:
getStartPoint
in interfaceTimeInterval
- Returns:
- see above
-
getEndPoint
@Nullable public TimePoint getEndPoint()
Description copied from interface:TimeInterval
Returns the ending point for the interval. May be null if the interval is open.- Specified by:
getEndPoint
in interfaceTimeInterval
- Returns:
- see above
-
getDurationSeconds
public Long getDurationSeconds()
Description copied from interface:TimeInterval
Returns the difference between the starting and ending points in seconds. May be null when the interval is open (no end point).- Specified by:
getDurationSeconds
in interfaceTimeInterval
- Returns:
- see above
-
-