- All Implemented Interfaces:
DoubleQuantizable
,Quantizable
,Stringable
,StringSource
,PointInTime<Second,
,Duration> TimeMeasurement
,Comparable<PointInTime<?,
?>>
Represents a second on a clock
- Author:
- jonathanl (shibo)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.telenav.kivakit.core.time.BaseTime
BaseTime.Topology
Nested classes/interfaces inherited from interface com.telenav.kivakit.interfaces.string.Stringable
Stringable.Format
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmaximum()
minimum()
Returns the number of milliseconds per unit of timeonNewTime
(Nanoseconds nanoseconds) static Second
second
(int second) protected BaseTime.Topology
topology()
Methods inherited from class com.telenav.kivakit.core.time.BaseTime
asPreciseUnits, asUnits, decremented, equals, hashCode, incremented, inRange, isBetweenExclusive, isBetweenInclusive, minusUnits, nanoseconds, nanosecondsToUnits, newDuration, newTime, next, plusUnits, toString, unitsToNanoseconds
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.telenav.kivakit.interfaces.time.PointInTime
asJavaInstant, compareTo, isAfter, isAtOrAfter, isAtOrBefore, isBefore, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNegative, isZero, maximum, minimum, minus, minus, nearest, plus, roundDown, roundUp
Methods inherited from interface com.telenav.kivakit.interfaces.numeric.Quantizable
asCommaSeparatedString, asSimpleString, asString, doubleQuantum, isNonZero
Methods inherited from interface com.telenav.kivakit.interfaces.string.Stringable
asString
Methods inherited from interface com.telenav.kivakit.interfaces.time.TimeMeasurement
asDays, asHours, asHumanReadableString, asMicroseconds, asMilliseconds, asMinutes, asNanoseconds, asSeconds, asWeeks, asYears, milliseconds, quantum, unitString
-
Constructor Details
-
Second
protected Second() -
Second
protected Second(int second)
-
-
Method Details
-
second
-
maximum
- Returns:
- The maximum point in time
-
minimum
- Returns:
- The minimum point in time
-
nanosecondsPerUnit
Description copied from class:BaseTime
Returns the number of milliseconds per unit of time- Specified by:
nanosecondsPerUnit
in classBaseTime<Second>
-
topology
- Specified by:
topology
in classBaseTime<Second>
- Returns:
- The kind of time this is, either
BaseTime.Topology.LINEAR
orBaseTime.Topology.CYCLIC
-