Class TimeValue
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeValue
- All Implemented Interfaces:
ComplexValue<TimeValue>,TimeObject
Common interface for time values. Needed as STA sometimes does not specify
wether an instant or an interval will be passed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic EntityPropertyMain<TimeInstant>static EntityPropertyMain<TimeInstant> -
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) boolean<P> PgetProperty(Property<P> property) Get the value of the given property.getProperty(String name) Get the custom property with the given name.inthashCode()booleanisEmpty()booleanboolean<P> TimeValuesetProperty(Property<P> property, P value) Set the given property to the given value.setProperty(String name, Object value) Set the custom property with the given name to the given value.
-
Field Details
-
EP_START_TIME
-
EP_END_TIME
-
-
Constructor Details
-
TimeValue
public TimeValue() -
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() -
getProperty
Description copied from interface:ComplexValueGet the value of the given property.- Specified by:
getPropertyin interfaceComplexValue<TimeValue>- Type Parameters:
P- The type of the property and value.- Parameters:
property- The property to get the value of.- Returns:
- the value of the requested property.
-
setProperty
Description copied from interface:ComplexValueSet the given property to the given value.- Specified by:
setPropertyin interfaceComplexValue<TimeValue>- Type Parameters:
P- The type of the property.- Parameters:
property- The property to set.value- The value to set the property to.- Returns:
- this.
-
getProperty
Description copied from interface:ComplexValueGet the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.- Specified by:
getPropertyin interfaceComplexValue<TimeValue>- Parameters:
name- The name of the custom property to fetch.- Returns:
- The value of the custom property.
-
setProperty
Description copied from interface:ComplexValueSet the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.- Specified by:
setPropertyin interfaceComplexValue<TimeValue>- Parameters:
name- The name of the custom property to set.value- The value of the custom property to set.- Returns:
- this.
-