<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Top 16 的 Java 工具類,你用過幾個(gè)?

          共 4684字,需瀏覽 10分鐘

           ·

          2021-06-13 11:06

          點(diǎn)擊關(guān)注公眾號(hào),Java干貨及時(shí)送達(dá)

          真香!24W字的Java面試手冊(cè)(點(diǎn)擊查看)

          在Java中,實(shí)用程序類是定義一組執(zhí)行通用功能的方法的類

          這篇文章展示了最常用的Java實(shí)用工具類及其最常用的方法。類列表及其方法列表均按受歡迎程度排序。數(shù)據(jù)基于從GitHub隨機(jī)選擇的50,000個(gè)開源Java項(xiàng)目。

          希望您可以通過瀏覽列表來了解已經(jīng)提供和流行的功能的一些想法,以使您知道不需要自己實(shí)現(xiàn)。這些方法的名稱通常指示它們的作用。如果方法名稱不夠直觀,您還可以查看其他開發(fā)人員如何在其開源項(xiàng)目中使用它們。

          1. org.apache.commons.io.IOUtils
          closeQuietly()  
          toString()  
          copy()  
          toByteArray()  
          write()  
          toInputStream()  
          readLines()  
          copyLarge()  
          lineIterator()  
          readFully()  
          1. org.apache.commons.io.FileUtils
          deleteDirectory()  
          readFileToString()  
          deleteQuietly()  
          copyFile()  
          writeStringToFile()  
          forceMkdir()  
          write()  
          listFiles()  
          copyDirectory()  
          forceDelete()  
          1. org.apache.commons.lang.StringUtils
          isBlank()  
          isNotBlank()  
          isEmpty()  
          isNotEmpty()  
          equals()  
          join()  
          split()  
          EMPTY  
          trimToNull()  
          replace()  
          1. org.apache.http.util.EntityUtils
          toString()  
          consume()  
          toByteArray()  
          consumeQuietly()  
          getContentCharSet()  
          1. org.apache.commons.lang3.StringUtils
          isBlank()  
          isNotBlank()  
          isEmpty()  
          isNotEmpty()  
          join()  
          equals()  
          split()  
          EMPTY  
          replace()  
          capitalize()  
          1. org.apache.commons.io.FilenameUtils
          getExtension()  
          getBaseName()  
          getName()  
          concat()  
          removeExtension()  
          normalize()  
          wildcardMatch()  
          separatorsToUnix()  
          getFullPath()  
          isExtension()  
          1. org.springframework.util.StringUtils
          hasText()  
          hasLength()  
          isEmpty()  
          commaDelimitedListToStringArray()  
          collectionToDelimitedString()  
          replace()  
          delimitedListToStringArray()  
          uncapitalize()  
          collectionToCommaDelimitedString()  
          tokenizeToStringArray()  
          1. org.apache.commons.lang.ArrayUtils
          contains()  
          addAll()  
          clone()  
          isEmpty()  
          add()  
          EMPTY_BYTE_ARRAY  
          subarray()  
          indexOf()  
          isEquals()  
          toObject()  
          1. org.apache.commons.lang.StringEscapeUtils
          escapeHtml()  
          unescapeHtml()  
          escapeXml()  
          escapeSql()  
          unescapeJava()  
          escapeJava()  
          escapeJavaScript()  
          unescapeXml()  
          unescapeJavaScript()  
          1. org.apache.http.client.utils.URLEncodedUtils
          format()  
          parse()  
          1. org.apache.commons.codec.digest.DigestUtils
          md5Hex()  
          shaHex()  
          sha256Hex()  
          sha1Hex()  
          sha()  
          md5()  
          sha512Hex()  
          sha1()  
          1. org.apache.commons.collections.CollectionUtils
          isEmpty()  
          isNotEmpty()  
          select()  
          transform()  
          filter()  
          find()  
          collect()  
          forAllDo()  
          addAll()  
          isEqualCollection()  
          1. org.apache.commons.lang3.ArrayUtils
          contains()  
          isEmpty()  
          isNotEmpty()  
          add()  
          clone()  
          addAll()  
          subarray()  
          indexOf()  
          EMPTY_OBJECT_ARRAY  
          EMPTY_STRING_ARRAY  
          1. org.apache.commons.beanutils.PropertyUtils
          getProperty()  
          setProperty()  
          getPropertyDescriptors()  
          isReadable()  
          copyProperties()  
          getPropertyDescriptor()  
          getSimpleProperty()  
          isWriteable()  
          setSimpleProperty()  
          getPropertyType()  
          1. org.apache.commons.lang3.StringEscapeUtils
          unescapeHtml4()  
          escapeHtml4()  
          escapeXml()  
          unescapeXml()  
          escapeJava()  
          escapeEcmaScript()  
          unescapeJava()  
          escapeJson()  
          escapeXml10()  
          1. org.apache.commons.beanutils.BeanUtils
          copyProperties()  
          getProperty()  
          setProperty()  
          describe()  
          populate()  
          copyProperty()  
          cloneBean()  

          轉(zhuǎn)自:
          programcreek

          來源:https://www.programcreek.com/

          版權(quán)申明:內(nèi)容來源網(wǎng)絡(luò),版權(quán)歸原創(chuàng)者所有。除非無法確認(rèn),我們都會(huì)標(biāo)明作者及出處,如有侵權(quán)煩請(qǐng)告知,我們會(huì)立即刪除并表示歉意。謝謝!

          如有文章對(duì)你有幫助,

          歡迎關(guān)注??、點(diǎn)贊??、轉(zhuǎn)發(fā)??!



          推薦 Java面試手冊(cè) 
          內(nèi)容包括網(wǎng)絡(luò)協(xié)議、Java基礎(chǔ)、進(jìn)階、字符串、集合、并發(fā)、JVM、數(shù)據(jù)結(jié)構(gòu)、算法、MySQL、Redis、Mongo、Spring、SpringBoot、MyBatis、SpringCloud、Linux以及各種中間件(Dubbo、Nginx、Zookeeper、MQ、Kafka、ElasticSearch)等等...

          點(diǎn)擊文末“閱讀原文”可直達(dá)

          瀏覽 42
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  国产免费自拍视频 | 亚洲AV永久无码精品国产精 | 久色视频在线 | 时逼高清视频免费少妞 | 国产高潮一区 |