Class TimeValue
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.ext.TimeValue
- All Implemented Interfaces:
TimeObject,ComplexValue
Common interface for time values. Needed as STA sometimes does not specify
wether an instant or an interval will be passed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeValuecreate(TimeInstant instant) static TimeValuecreate(TimeInterval timeInterval) static TimeValuestatic TimeValuestatic TimeValuecreate(ZonedDateTime zdt) static TimeValuecreate(ZonedDateTime start, ZonedDateTime end) static TimeValuecreate(net.time4j.Moment instant) static TimeValuecreate(net.time4j.Moment start, net.time4j.Moment end) booleaninthashCode()booleanisEmpty()booleanboolean
-
Constructor Details
-
TimeValue
-
TimeValue
-
-
Method Details
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
isInstant
public boolean isInstant() -
getInstant
-
isInterval
public boolean isInterval() -
getInterval
-
asISO8601
- Specified by:
asISO8601in interfaceTimeObject
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTimeObject
-
equals
-
hashCode
public int hashCode() -
get
- Specified by:
getin interfaceComplexValue
-