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 ZonedDateTime
INFINITE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ZonedDateTime
from()
int
hashCode()
boolean
isInfinite()
static EffectivePeriod
nowToInfinite()
static EffectivePeriod
of(ZonedDateTime from, ZonedDateTime until)
String
toString()
ZonedDateTime
until()
-
-
-
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()
-
-