Package cdm.base.datetime
Interface TimeRounding
- All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
- All Known Subinterfaces:
TimeRounding.TimeRoundingBuilder
- All Known Implementing Classes:
TimeRounding.TimeRoundingBuilderImpl,TimeRounding.TimeRoundingImpl
@RosettaDataType(value="TimeRounding",
builder=TimeRoundingBuilderImpl.class,
version="7.0.0-dev.105")
@RuneDataType(value="TimeRounding",
model="cdm",
builder=TimeRoundingBuilderImpl.class,
version="7.0.0-dev.105")
public interface TimeRounding
extends com.rosetta.model.lib.RosettaModelObject
Specifies how a calculated time should be rounded, including both the direction of rounding and the unit to which the time is rounded. Rounding is applied after all offsets have been calculated.
- Version:
- 7.0.0-dev.105
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder Interfacestatic classBuilder Implementation of TimeRoundingstatic classImmutable Implementation of TimeRounding -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsbuilder()The direction in which rounding is performed (e.g., up, down, or to the nearest value).The time unit to which the value should be rounded (e.g., minute, hour, day).default Class<? extends TimeRounding> getType()default com.rosetta.model.lib.meta.RosettaMetaData<? extends TimeRounding> metaData()Utility Methodsdefault voidprocess(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
metaData
-
-
Method Details
-
getRoundingDirection
RoundingDirectionEnum getRoundingDirection()The direction in which rounding is performed (e.g., up, down, or to the nearest value). -
getRoundToUnit
TimeUnitEnum getRoundToUnit()The time unit to which the value should be rounded (e.g., minute, hour, day). -
build
TimeRounding build()Build Methods- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
TimeRounding.TimeRoundingBuilder toBuilder()- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
builder
-
metaData
Utility Methods- Specified by:
metaDatain interfacecom.rosetta.model.lib.RosettaModelObject
-
getType
- Specified by:
getTypein interfacecom.rosetta.model.lib.RosettaModelObject
-
process
default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) - Specified by:
processin interfacecom.rosetta.model.lib.RosettaModelObject
-