久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='P48Qo'></small><noframes id='P48Qo'>

    <i id='P48Qo'><tr id='P48Qo'><dt id='P48Qo'><q id='P48Qo'><span id='P48Qo'><b id='P48Qo'><form id='P48Qo'><ins id='P48Qo'></ins><ul id='P48Qo'></ul><sub id='P48Qo'></sub></form><legend id='P48Qo'></legend><bdo id='P48Qo'><pre id='P48Qo'><center id='P48Qo'></center></pre></bdo></b><th id='P48Qo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='P48Qo'><tfoot id='P48Qo'></tfoot><dl id='P48Qo'><fieldset id='P48Qo'></fieldset></dl></div>
    • <bdo id='P48Qo'></bdo><ul id='P48Qo'></ul>

    1. <legend id='P48Qo'><style id='P48Qo'><dir id='P48Qo'><q id='P48Qo'></q></dir></style></legend>
    2. <tfoot id='P48Qo'></tfoot>

      1. 將 BigDecimal 轉(zhuǎn)換為 Integer

        Converting BigDecimal to Integer(將 BigDecimal 轉(zhuǎn)換為 Integer)
      2. <i id='TjHKc'><tr id='TjHKc'><dt id='TjHKc'><q id='TjHKc'><span id='TjHKc'><b id='TjHKc'><form id='TjHKc'><ins id='TjHKc'></ins><ul id='TjHKc'></ul><sub id='TjHKc'></sub></form><legend id='TjHKc'></legend><bdo id='TjHKc'><pre id='TjHKc'><center id='TjHKc'></center></pre></bdo></b><th id='TjHKc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TjHKc'><tfoot id='TjHKc'></tfoot><dl id='TjHKc'><fieldset id='TjHKc'></fieldset></dl></div>
        <legend id='TjHKc'><style id='TjHKc'><dir id='TjHKc'><q id='TjHKc'></q></dir></style></legend>

                <tbody id='TjHKc'></tbody>
              <tfoot id='TjHKc'></tfoot>

              <small id='TjHKc'></small><noframes id='TjHKc'>

                  <bdo id='TjHKc'></bdo><ul id='TjHKc'></ul>
                  本文介紹了將 BigDecimal 轉(zhuǎn)換為 Integer的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我有 Hibernate 方法,它返回一個(gè) BigDecimal.我有另一個(gè) API 方法,我需要將該數(shù)字傳遞給它,但它接受 Integer 作為參數(shù).我無(wú)法更改這兩種方法的返回類型或變量類型.

                  I have Hibernate method which returns me a BigDecimal. I have another API method to which I need to pass that number but it accepts Integer as parameter. I cannot change return types or variable types of both methods.

                  現(xiàn)在如何將 BigDecimal 轉(zhuǎn)換為 Integer 并將其傳遞給第二個(gè)方法?

                  Now how to convert the BigDecimal into Integer and pass it to second method?

                  有辦法解決嗎?

                  推薦答案

                  你會(huì)調(diào)用 myBigDecimal.intValueExact()(或只是 intValue()) 如果您丟失信息,它甚至?xí)伋霎惓?這會(huì)返回一個(gè) int,但自動(dòng)裝箱會(huì)處理這個(gè)問(wèn)題.

                  You would call myBigDecimal.intValueExact() (or just intValue()) and it will even throw an exception if you would lose information. That returns an int but autoboxing takes care of that.

                  這篇關(guān)于將 BigDecimal 轉(zhuǎn)換為 Integer的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語(yǔ)句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)
                  <i id='TBzTg'><tr id='TBzTg'><dt id='TBzTg'><q id='TBzTg'><span id='TBzTg'><b id='TBzTg'><form id='TBzTg'><ins id='TBzTg'></ins><ul id='TBzTg'></ul><sub id='TBzTg'></sub></form><legend id='TBzTg'></legend><bdo id='TBzTg'><pre id='TBzTg'><center id='TBzTg'></center></pre></bdo></b><th id='TBzTg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TBzTg'><tfoot id='TBzTg'></tfoot><dl id='TBzTg'><fieldset id='TBzTg'></fieldset></dl></div>
                    <tfoot id='TBzTg'></tfoot>

                        <legend id='TBzTg'><style id='TBzTg'><dir id='TBzTg'><q id='TBzTg'></q></dir></style></legend>

                          <bdo id='TBzTg'></bdo><ul id='TBzTg'></ul>

                          <small id='TBzTg'></small><noframes id='TBzTg'>

                              <tbody id='TBzTg'></tbody>
                            主站蜘蛛池模板: aaaaaaa片毛片免费观看 | 亚洲精品视频在线看 | 精品福利在线 | 亚洲一区导航 | 成人久久久久 | 日本一二三区电影 | 日韩欧美在线不卡 | 视频一二三区 | 三极网站 | 精精久久 | 亚洲一区二区在线播放 | 99精品久久| 亚洲精品免费在线观看 | 在线一级片| 国产精品波多野结衣 | 欧美一区二区在线播放 | 中文字幕在线观看视频网站 | 91精品欧美久久久久久久 | 精品国产区 | 亚洲精品一区二区三区在线观看 | 国产一二区视频 | 国精产品一区二区三区 | 亚洲乱码国产乱码精品精的特点 | 久久精品久久久久久 | 精品久久国产老人久久综合 | 国产成人小视频 | 精品美女视频在免费观看 | 免费黄色在线 | 精品国产18久久久久久二百 | 99色视频| 中文字幕 欧美 日韩 | 蜜桃精品视频在线 | 成人三区四区 | 日韩中文在线视频 | 久久久免费毛片 | 成人做爰69片免费观看 | 免费视频二区 | 亚洲性网 | 亚洲精品日韩视频 | 色就干| 91欧美激情一区二区三区成人 |