Module com.machinezoo.hookless.time
Package com.machinezoo.hookless.time
Class ShrinkingReactiveDuration
java.lang.Object
com.machinezoo.hookless.time.ReactiveDuration
com.machinezoo.hookless.time.ShrinkingReactiveDuration
- All Implemented Interfaces:
-
Comparable<ShrinkingReactiveDuration>
@DraftApi("requires review") @DraftCode("requires review") @NoTests @StubDocs public class ShrinkingReactiveDuration extends ReactiveDuration implements Comparable<ShrinkingReactiveDuration>
Reactive version of
Duration
, negative (shrinking) variant.
-
Method Summary
Modifier and TypeMethodDescriptionaddTo
(ReactiveInstant instant) int
int
boolean
boolean
boolean
isZero()
minus
(long amount, TemporalUnit unit) minus
(ShrinkingReactiveDuration other) minusDays
(long days) minusHours
(long hours) minusMillis
(long millis) minusMinutes
(long minutes) minusNanos
(long nanos) minusSeconds
(long seconds) negated()
plus
(long amount, TemporalUnit unit) plus
(GrowingReactiveDuration other) plusDays
(long days) plusHours
(long hours) plusMillis
(long millis) plusMinutes
(long minutes) plusNanos
(long nanos) plusSeconds
(long seconds) subtractFrom
(Instant instant) toString()
truncatedTo
(Duration unit) Methods inherited from class com.machinezoo.hookless.time.ReactiveDuration
between, between, between, between, equals, getSeconds, hashCode, toDays, toHours, toMillis, toMinutes, toUnits, toUnits, truncatedTo
-
Method Details
-
compareTo
- Specified by:
-
compareTo
in interfaceComparable<ShrinkingReactiveDuration>
-
compareTo
- Specified by:
-
compareTo
in classReactiveDuration
-
isPositive
public boolean isPositive()- Specified by:
-
isPositive
in classReactiveDuration
-
isNegative
public boolean isNegative()- Specified by:
-
isNegative
in classReactiveDuration
-
isZero
public boolean isZero()- Specified by:
-
isZero
in classReactiveDuration
-
plus
- Specified by:
-
plus
in classReactiveDuration
-
plus
-
plus
- Specified by:
-
plus
in classReactiveDuration
-
plusDays
- Specified by:
-
plusDays
in classReactiveDuration
-
plusHours
- Specified by:
-
plusHours
in classReactiveDuration
-
plusMinutes
- Specified by:
-
plusMinutes
in classReactiveDuration
-
plusSeconds
- Specified by:
-
plusSeconds
in classReactiveDuration
-
plusMillis
- Specified by:
-
plusMillis
in classReactiveDuration
-
plusNanos
- Specified by:
-
plusNanos
in classReactiveDuration
-
minus
- Specified by:
-
minus
in classReactiveDuration
-
minus
-
minus
- Specified by:
-
minus
in classReactiveDuration
-
minusDays
- Specified by:
-
minusDays
in classReactiveDuration
-
minusHours
- Specified by:
-
minusHours
in classReactiveDuration
-
minusMinutes
- Specified by:
-
minusMinutes
in classReactiveDuration
-
minusSeconds
- Specified by:
-
minusSeconds
in classReactiveDuration
-
minusMillis
- Specified by:
-
minusMillis
in classReactiveDuration
-
minusNanos
- Specified by:
-
minusNanos
in classReactiveDuration
-
negated
- Specified by:
-
negated
in classReactiveDuration
-
truncatedTo
- Specified by:
-
truncatedTo
in classReactiveDuration
-
addTo
-
subtractFrom
-
toString
-