Class TimeInterval
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.models.ext.TimeInterval
- All Implemented Interfaces:
ComplexValue<TimeInterval>,TimeObject
Represent an ISO8601 time interval.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic EntityPropertyMain<TimeInstant>static EntityPropertyMain<TimeInstant> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeIntervalstatic TimeIntervalcreate(ZonedDateTime start, ZonedDateTime end) static TimeIntervalcreate(net.time4j.Moment start, net.time4j.Moment end) booleannet.time4j.MomentgetEnd()net.time4j.range.MomentInterval<P> PgetProperty(Property<P> property) Get the value of the given property.getProperty(String name) Get the custom property with the given name.net.time4j.MomentgetStart()inthashCode()booleanisEmpty()static TimeIntervalsetProperty(Property property, Object 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.toString()
-
Field Details
-
EP_START_TIME
-
EP_END_TIME
-
-
Constructor Details
-
TimeInterval
public TimeInterval() -
TimeInterval
public TimeInterval(net.time4j.range.MomentInterval interval)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
create
-
create
-
create
-
parse
-
getInterval
public net.time4j.range.MomentInterval getInterval() -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTimeObject
-
asISO8601
- Specified by:
asISO8601in interfaceTimeObject
-
toString
-
getProperty
Description copied from interface:ComplexValueGet the value of the given property.- Specified by:
getPropertyin interfaceComplexValue<TimeInterval>- 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<TimeInterval>- Parameters:
property- The property to set.value- The value to set the property to.- Returns:
- this.
-
getStart
public net.time4j.Moment getStart() -
getEnd
public net.time4j.Moment getEnd() -
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<TimeInterval>- 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<TimeInterval>- Parameters:
name- The name of the custom property to set.value- The value of the custom property to set.- Returns:
- this.
-