Package org.projectbarbel.histo.model
Class EffectivePeriod
- java.lang.Object
-
- org.projectbarbel.histo.model.EffectivePeriod
-
public final class EffectivePeriod extends Object
The abstraction storing the effective time for a version.- Author:
- Niklas Schlimm
-
-
Field Summary
Fields Modifier and Type Field Description static ZonedDateTimeINFINITE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ZonedDateTimefrom()inthashCode()booleanisInfinite()static EffectivePeriodnowToInfinite()static EffectivePeriodof(ZonedDateTime from, ZonedDateTime until)StringtoString()ZonedDateTimeuntil()
-
-
-
Field Detail
-
INFINITE
public static final ZonedDateTime INFINITE
-
-
Method Detail
-
of
public static EffectivePeriod of(ZonedDateTime from, ZonedDateTime until)
-
nowToInfinite
public static EffectivePeriod nowToInfinite()
-
isInfinite
public boolean isInfinite()
-
from
public ZonedDateTime from()
-
until
public ZonedDateTime until()
-
-