Package cdm.base.datetime
Class RelativeTimeOffset.RelativeTimeOffsetImpl
java.lang.Object
cdm.base.datetime.RelativeTimeOffset.RelativeTimeOffsetImpl
- All Implemented Interfaces:
RelativeTimeOffset,com.rosetta.model.lib.RosettaModelObject
- Direct Known Subclasses:
RelativeTime.RelativeTimeImpl
- Enclosing interface:
RelativeTimeOffset
public static class RelativeTimeOffset.RelativeTimeOffsetImpl
extends Object
implements RelativeTimeOffset
Immutable Implementation of RelativeTimeOffset
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.datetime.RelativeTimeOffset
RelativeTimeOffset.RelativeTimeOffsetBuilder, RelativeTimeOffset.RelativeTimeOffsetBuilderImpl, RelativeTimeOffset.RelativeTimeOffsetImpl -
Field Summary
Fields inherited from interface cdm.base.datetime.RelativeTimeOffset
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanA time offset multiplier, e.g. 1, 2 or 3 etc.The unit of time for the offset (e.g., seconds, minutes, hours, days).Optional rules that define how the calculated time should be rounded after the offset has been applied.inthashCode()protected voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.base.datetime.RelativeTimeOffset
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
RelativeTimeOffsetImpl
-
-
Method Details
-
getOffsetTimeUnit
@RosettaAttribute("offsetTimeUnit") @Accessor(GETTER) @RuneAttribute("offsetTimeUnit") public TimeUnitEnum getOffsetTimeUnit()Description copied from interface:RelativeTimeOffsetThe unit of time for the offset (e.g., seconds, minutes, hours, days).- Specified by:
getOffsetTimeUnitin interfaceRelativeTimeOffset
-
getOffsetMultiplier
@RosettaAttribute("offsetMultiplier") @Accessor(GETTER) @RuneAttribute("offsetMultiplier") public Integer getOffsetMultiplier()Description copied from interface:RelativeTimeOffsetA time offset multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying a negative offset, e.g. -2 hours.- Specified by:
getOffsetMultiplierin interfaceRelativeTimeOffset
-
getRounding
@RosettaAttribute("rounding") @Accessor(GETTER) @RuneAttribute("rounding") public TimeRounding getRounding()Description copied from interface:RelativeTimeOffsetOptional rules that define how the calculated time should be rounded after the offset has been applied.- Specified by:
getRoundingin interfaceRelativeTimeOffset
-
build
Description copied from interface:RelativeTimeOffsetBuild Methods- Specified by:
buildin interfaceRelativeTimeOffset- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceRelativeTimeOffset- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
setBuilderFields
-
equals
-
hashCode
public int hashCode() -
toString
-