[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:
Duplicate
is duplicated by JAVA-2504 Add Document.get(key, defaultValue) Closed
Backwards Compatibility: Fully Compatible

 Comments   
Comment by Abtin Zohrabi [ 15/May/17 ]

Perfect! Thanks

Comment by Ross Lawley [ 15/May/17 ]

Hi abtin.zo@gmail.com,

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.
By public you mean I have to push it to remote repo? I also don't have permission to do that

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?
I'm getting access denied from github when I'm trying to create a pull request onto master from my local branch

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...

Generated at Thu Feb 08 08:57:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.