[JAVA-2437] Add overloads of getLong and getDouble in org.bson.Document to specify default values Created: 27/Jan/17 Updated: 15/May/17 Resolved: 15/May/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Abtin Zohrabi | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Comments |
| Comment by Abtin Zohrabi [ 15/May/17 ] |
|
Perfect! Thanks |
| Comment by Ross Lawley [ 15/May/17 ] |
|
Just to let you know we've added a generic: doc.get(key, defaultValue) which should meet your needs. This will be released in the next release (3.5). Ross |
| Comment by Abtin Zohrabi [ 03/Feb/17 ] |
|
Thanks for the comment. |
| Comment by Ross Lawley [ 03/Feb/17 ] |
|
abtin.zo@gmail.com I think your local branch will need to be public also. |
| Comment by Abtin Zohrabi [ 02/Feb/17 ] |
|
Can you help a bit how to do that? |
| Comment by Jeffrey Yemin [ 01/Feb/17 ] |
|
Yes, feel free to open a pull request. |
| Comment by Abtin Zohrabi [ 01/Feb/17 ] |
|
I need these two overloads and I found out that they're not implemented, I was wondering if I can add these two myself... |