Pillars

The interface IPillarSet handles a collection of pillars (for instance, [‘1W’, ‘1M’, ‘6M’, ‘9M’, ‘1Y’]). Several implementation are also provided.

Methods of IPillarSet

  • getPillar: Returns a specific pillar.
  • getDays: Returns the duration, in days, of a specific pillar.
  • getSize: The number of pillars.

Methods of IPillar

  • getValue: Returns one représentation of the pillar. The pillar can have several representations (for instance ‘6M’, ‘2023-06-12).
  • getDepth: The number of representations available for this pillar.

Implementations of IPillarSet

  • PillarSetOfPillar: A list of pillars that have only one representation.
  • PillarSetOfPillarTwo: A list of pillars that have two different representations (for instance, date and duration). The duration is computed from the primary représentation and fallbacks to the secondary.
  • ModifiedPillarSetOfPillar: This object allows changing the definition of the equals function of a provided IPillarSet.