Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3380

Default values for Document#getLong and Document#getDouble

    • Type: Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Environment:
      N/A

      Would it be possible to add default values to Document#getLong and Document#getDouble, you can already do it through Document#getEmbedded but that seems impractical. Pretty much all the getX's have an option for a default value so I don't know if there's a reason you haven't done it for double and long. 

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            sheacartwright4@gmail.com Shea Cartwright
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: