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

Add new plus/minus methods for combining CurrencyScenarioArrays #1577

Merged
merged 2 commits into from
Oct 6, 2017

Conversation

brianweller89
Copy link
Contributor

No description provided.

* The currency must be the same as the currency of this array.
*
* @param amount the amount to add
* @return a new array containing the values from this array added to the values in the other array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite right

* The arrays must have the same size.
*
* @param other another array of multiple currency values.
* @return a new array containing the values from this array added with the values from the other array subtracted
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not "added"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confession time; I copy/pasted all of these new Javadoc from CurrencyAmountArray!

Will clean that up as well.

* The currency must be the same as the currency of this array.
*
* @param amount the amount to subtract
* @return a new array containing the values from this array with the values from the amount subtracted
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with this one? Only issue I can see is 'values' rather than value

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return a new array containing the values from this array with the specified amount subtracted

@brianweller89 brianweller89 merged commit 84dd0b1 into master Oct 6, 2017
@brianweller89 brianweller89 deleted the topic/CurrencyScenarioArrayMaths branch October 19, 2017 18:54
@jodastephen jodastephen added this to the v1.5 milestone Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants