Class Offset.OffsetImpl

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

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

  • Method Details

    • getDayType

      @RosettaAttribute("dayType") @RuneAttribute("dayType") public DayTypeEnum getDayType()
      Description copied from interface: Offset
      In the case of an offset specified as a number of days, this element defines whether consideration is given as to whether a day is a good business day or not. If a day type of business days is specified then non-business days are ignored when calculating the offset. The financial business centers to use for determination of business days are implied by the context in which this element is used. This element must only be included when the offset is specified as a number of days. If the offset is zero days then the dayType element should not be included.
      Specified by:
      getDayType in interface Offset
    • build

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

      public Offset.OffsetBuilder toBuilder()
      Specified by:
      toBuilder in interface Offset
      Specified by:
      toBuilder in interface Period
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
      Overrides:
      toBuilder in class Period.PeriodImpl
    • setBuilderFields

      protected void setBuilderFields(Offset.OffsetBuilder builder)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Period.PeriodImpl
    • toString

      public String toString()
      Overrides:
      toString in class Period.PeriodImpl