在Java中,實用程序類是一個定義一組執行經常使用功能的方法的類。這篇文章展現了最經常使用的Java實用程序類及其最經常使用的方法。類列表及其方法列表都按流行度排序。該數據基於GitHub隨機選擇的50,000個開源Java項目。
最後,若是你們若是在自學遇到困難,想找一個java的學習環境,能夠加入咱們的java學習圈,點擊我加入吧,會節約不少時間,減小不少在學習中遇到的難題。
經常使用的16個Java實用工具類,Java開發人員請收藏!
但願您能夠經過瀏覽列表得到已經提供和流行的一些想法,這樣您就不須要本身編程了。這些方法的名稱一般代表它們的做用。若是方法名稱不夠直觀,您還能夠查看其餘開發人員如何在他們的開源項目中使用它們。java
closeQuietly ( )spring
toString ( )
copy ( )
toByteArray ( )
write ( )
toInputStream ( )
readLines ( )
copyLarge ( )
lineIterator ( )
readFully ( )
經常使用的16個Java實用工具類,Java開發人員請收藏!apache
deleteDirectory ( )
readFileToString ( )
deleteQuietly ( )
copyFile ( )
writeStringToFile ( )
forceMkdir ( )
write ( )
listFiles ( )
copyDirectory ( )
forceDelete ( )編程
isBlank ( )
isNotBlank ( )
isEmpty ( )
isNotEmpty ( )
equals ( )
join ( )
split ( )
EMPTY
trimToNull ( )
replace ( )
經常使用的16個Java實用工具類,Java開發人員請收藏!api
toString ( )
consume ( )
toByteArray ( )
consumeQuietly ( )
getContentCharSet ( )工具
isBlank ( )
isNotBlank ( )
isEmpty ( )
isNotEmpty ( )
join ( )
equals ( )
split ( )
EMPTY
replace ( )
capitalize ( )學習
getExtension ( )
getBaseName ( )
getName ( )
concat ( )
removeExtension ( )
normalize ( )
wildcardMatch ( )
separatorsToUnix ( )
getFullPath ( )
isExtension ( )ui
hasText ( )
hasLength ( )
isEmpty ( )
commaDelimitedListToStringArray ( )
collectionToDelimitedString ( )
replace ( )
delimitedListToStringArray ( )
uncapitalize ( )
collectionToCommaDelimitedString ( )
tokenizeToStringArray ( )spa
contains ( )
addAll ( )
clone ( )
isEmpty ( )
add ( )
EMPTY_BYTE_ARRAY
subarray ( )
indexOf ( )
isEquals ( )
toObject ( )
經常使用的16個Java實用工具類,Java開發人員請收藏!code
escapeHtml ( )
unescapeHtml ( )
escapeXml ( )
escapeSql ( )
unescapeJava ( )
escapeJava ( )
escapeJavaScript ( )
unescapeXml ( )
unescapeJavaScript ( )
format ( )
parse ( )
md5Hex ( )
shaHex ( )
sha256Hex ( )
sha1Hex ( )
sha ( )
md5 ( )
sha512Hex ( )
sha1 ( )
經常使用的16個Java實用工具類,Java開發人員請收藏!
isEmpty ( )
isNotEmpty ( )
select ( )
transform ( )
filter ( )
find ( )
collect ( )
forAllDo ( )
addAll ( )
isEqualCollection ( )
contains ( )
isEmpty ( )
isNotEmpty ( )
add ( )
clone ( )
addAll ( )
subarray ( )
indexOf ( )
EMPTY_OBJECT_ARRAY
EMPTY_STRING_ARRAY
getProperty ( )
setProperty ( )
getPropertyDescriptors ( )
isReadable ( )
copyProperties ( )
getPropertyDescriptor ( )
getSimpleProperty ( )
isWriteable ( )
setSimpleProperty ( )
getPropertyType ( )
unescapeHtml4 ( )
escapeHtml4 ( )
escapeXml ( )
unescapeXml ( )
escapeJava ( )
escapeEcmaScript ( )
unescapeJava ( )
escapeJson ( )
escapeXml10 ( )
copyProperties ( )getProperty ( )setProperty ( )describe ( )populate ( )copyProperty ( )cloneBean ( )