Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single stub period #1615

merged 2 commits into from Nov 24, 2017

Single stub period #1615

merged 2 commits into from Nov 24, 2017


Copy link

@yukiiwashita yukiiwashita commented Nov 23, 2017

Handling for a single period swap with initial stub, where Schedule has a single stub period.

  • isTerm() only returns true when frequency is Term
  • 'isSinglePeriod()` returns true if there is one period
  • getInitialStub() returns a single period if it is a stub
  • getInitialStub(), getRegularPeriods() and getFinalStub() form a set, with each period being in one of the three methods

Existing isTerm() method redefined to refer to term frequency
Additional isSinglePeriod() defined to count the number of periods
Methods getInitialStub(), getRegularPeriods(), getFinalStub()
defined to allocate a period to one and only one of the methods
@jodastephen jodastephen added this to the v1.6 milestone Nov 24, 2017
@jodastephen jodastephen merged commit 1fb76c4 into master Nov 24, 2017
@jodastephen jodastephen deleted the topic/single-stub-period branch November 24, 2017 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants