Class ZonedDateTimeRange
- java.lang.Object
-
- net.anwiba.commons.utilities.time.ZonedDateTimeRange
-
- All Implemented Interfaces:
java.io.Serializable,IZonedDateTimeRange
public class ZonedDateTimeRange extends java.lang.Object implements IZonedDateTimeRange
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeRange(java.time.ZonedDateTime from, java.time.ZonedDateTime until)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.time.ZonedDateTimegetCenter()java.time.DurationgetDuration()java.time.ZonedDateTimegetFrom()java.time.ZonedDateTimegetUntil()inthashCode()booleaninteract(java.time.ZonedDateTime time)booleaninteract(IZonedDateTimeRange segment)IZonedDateTimeRangeintersection(IZonedDateTimeRange segment)static IZonedDateTimeRangeof(java.time.ZonedDateTime from, java.time.Duration duration)static IZonedDateTimeRangeof(java.time.ZonedDateTime from, java.time.Period period)
-
-
-
Method Detail
-
of
public static IZonedDateTimeRange of(java.time.ZonedDateTime from, java.time.Duration duration)
-
of
public static IZonedDateTimeRange of(java.time.ZonedDateTime from, java.time.Period period)
-
getFrom
public java.time.ZonedDateTime getFrom()
- Specified by:
getFromin interfaceIZonedDateTimeRange
-
getUntil
public java.time.ZonedDateTime getUntil()
- Specified by:
getUntilin interfaceIZonedDateTimeRange
-
getCenter
public java.time.ZonedDateTime getCenter()
- Specified by:
getCenterin interfaceIZonedDateTimeRange
-
getDuration
public java.time.Duration getDuration()
- Specified by:
getDurationin interfaceIZonedDateTimeRange
-
interact
public boolean interact(java.time.ZonedDateTime time)
- Specified by:
interactin interfaceIZonedDateTimeRange
-
interact
public boolean interact(IZonedDateTimeRange segment)
- Specified by:
interactin interfaceIZonedDateTimeRange
-
intersection
public IZonedDateTimeRange intersection(IZonedDateTimeRange segment)
- Specified by:
intersectionin interfaceIZonedDateTimeRange
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-