Package com.fizzed.crux.util
Class InstantInterval
- java.lang.Object
-
- com.fizzed.crux.util.InstantInterval
-
public class InstantInterval extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InstantInterval(java.time.Instant start)InstantInterval(java.time.Instant start, java.time.Instant end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.InstantgetEnd()java.time.InstantgetStart()java.util.List<InstantInterval>partition(long temporalDuration, java.time.temporal.TemporalUnit temporalUnit)java.lang.StringtoString()
-
-
-
Method Detail
-
getStart
public java.time.Instant getStart()
-
getEnd
public java.time.Instant getEnd()
-
partition
public java.util.List<InstantInterval> partition(long temporalDuration, java.time.temporal.TemporalUnit temporalUnit)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-