Class Period.PeriodImpl

java.lang.Object
cdm.base.datetime.Period.PeriodImpl
All Implemented Interfaces:
Period, com.rosetta.model.lib.GlobalKey, com.rosetta.model.lib.RosettaModelObject
Direct Known Subclasses:
Offset.OffsetImpl
Enclosing interface:
Period

public static class Period.PeriodImpl extends Object implements Period
Immutable Implementation of Period
  • Constructor Details

  • Method Details

    • getPeriodMultiplier

      @RosettaAttribute(value="periodMultiplier", isRequired=true) @RuneAttribute(value="periodMultiplier", isRequired=true) public Integer getPeriodMultiplier()
      Description copied from interface: Period
      A time period multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying an offset relative to another date, e.g. -2 days.
      Specified by:
      getPeriodMultiplier in interface Period
    • getPeriod

      @RosettaAttribute(value="period", isRequired=true) @RuneAttribute(value="period", isRequired=true) public PeriodEnum getPeriod()
      Description copied from interface: Period
      A time period, e.g. a day, week, month or year of the stream. If the periodMultiplier value is 0 (zero) then period must contain the value D (day).
      Specified by:
      getPeriod in interface Period
    • getMeta

      @RosettaAttribute("meta") @RuneAttribute("meta") @RuneMetaType public com.rosetta.model.metafields.MetaFields getMeta()
      Specified by:
      getMeta in interface com.rosetta.model.lib.GlobalKey
      Specified by:
      getMeta in interface Period
    • build

      public Period build()
      Description copied from interface: Period
      Build Methods
      Specified by:
      build in interface Period
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      public Period.PeriodBuilder toBuilder()
      Specified by:
      toBuilder in interface Period
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(Period.PeriodBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object