String wrap(String str, char wrapWith) 문자열에 지정한 글자(wrapChar) 로 감싸서 반환 StringUtils.wrap(null, *) = null StringUtils.wrap("", *) = "" StringUtils.wrap("ab", '\0') = "ab" StringUtils.wrap("ab", 'x') = "xabx" StringUtils.wrap("ab", '\'') = "'ab'" StringUtils.wrap("\"ab\"", '\"') = "\"\"ab\"\"" cs String wrap(String str, String wrapWith) 문자열에 지정한 문자열(wrapWith) 로 감싸서 반환 StringUtils.wrap(null, *) = nul..
String[] split(String str) 문자열의 공백을 기준으로 나눠 문자열 배열 반환 StringUtils.split(null) = null StringUtils.split("") = [] StringUtils.split("abc def") = ["abc", "def"] StringUtils.split("abc def") = ["abc", "def"] StringUtils.split(" abc ") = ["abc"] cs String[] split(String str, char separatorChar) 지정한 글자(separatorChar) 를 기준으로 나눠 문자열 배열 반환 StringUtils.split(null, *) = null StringUtils.split("", *) = [] S..
String prependIfMissing(String str, CharSequence prefix, CharSequence... prefixes) 문자열이 접두사(prefix, prefixes) 로 시작하지 않으면 접두사(prefix, prefixes) 추가 StringUtils.prependIfMissing(null, null) = null StringUtils.prependIfMissing("abc", null) = "abc" StringUtils.prependIfMissing("", "xyz") = "xyz" StringUtils.prependIfMissing("abc", "xyz") = "xyzabc" StringUtils.prependIfMissing("xyzabc", "xyz") = "xyz..
String mid(String str, int pos, int len) 지정한 위치(pos)에서 길이만큼(len) 문자열 반환 StringUtils.mid(null, *, *) = null StringUtils.mid(*, *, -ve) = "" StringUtils.mid("", 0, *) = "" StringUtils.mid("abc", 0, 2) = "ab" StringUtils.mid("abc", 0, 4) = "abc" StringUtils.mid("abc", 2, 4) = "c" StringUtils.mid("abc", 4, 2) = "" StringUtils.mid("abc", -2, 2) = "ab" cs String normalizeSpace(String str) trim 후 중간의 여..
String join(byte[] array, char separator) byte 배열을 구분자(separator) 로 join 하여 반환 StringUtils.join(new Byte[]{(byte)0xA, (byte)0x01, (byte)0x02}, '*') = "10*1*2" cs String join(byte[] array, char separator, int startIndex, int endIndex) byte 배열을 구분자(separator) 로 지정한 범위에(startIndex, endIndex) join 하여 반환 StringUtils.join(new Byte[]{(byte)0xA, (byte)0x01, (byte)0x02}, '*', 0, 3) = "10*1*2" StringUtils..
String getCommonPrefix(String... strs) 모든 문자열에서 공통으로 시작되는 문자열 반환 StringUtils.getCommonPrefix(null) = "" StringUtils.getCommonPrefix(new String[] {}) = "" StringUtils.getCommonPrefix(new String[] {"abc"}) = "abc" StringUtils.getCommonPrefix(new String[] {null, null}) = "" StringUtils.getCommonPrefix(new String[] {"", ""}) = "" StringUtils.getCommonPrefix(new String[] {"", null}) = "" StringUtils...
T defaultIfBlank(T str, T defaultStr) 문자열이 공백, "", null 일 경우 반환할 문자열(defaultStr) 반환 StringUtils.defaultIfBlank(null, "NULL") = "NULL" StringUtils.defaultIfBlank("", "NULL") = "NULL" StringUtils.defaultIfBlank(" ", "NULL") = "NULL" StringUtils.defaultIfBlank("bat", "NULL") = "bat" StringUtils.defaultIfBlank("", null) = null cs T defaultIfEmpty(T str, T defaultStr) 문자열이 "", null 일 경우 반환할 문자열(defau..
String abbreviate(String str, int maxWidth) 문자열을 지정한 크기(maxWidth) 만큼 축소시킴 StringUtils.abbreviate(null, *) = null StringUtils.abbreviate("", 4) = "" StringUtils.abbreviate("abcdefg", 6) = "abc..." StringUtils.abbreviate("abcdefg", 7) = "abcdefg" StringUtils.abbreviate("abcdefg", 8) = "abcdefg" StringUtils.abbreviate("abcdefg", 4) = "a..." StringUtils.abbreviate("abcdefg", 3) = IllegalArgumentExce..
StringUtils? - Apache commons 에서 제공해주는 문자열 관련 기능을 강화한 class - import org.apache.commons.lang3.StringUtils 장점 - StringUtils 를 쓰면 왠만한 문자열 관련 작업은 다 할 수 있다. - String 인자가 null 이여도 안전한 처리가 가능하다. - 이름에서 알 수 있듯이 모두 static 함수여서 필요할때 알맞게 쓰면 된다. API guide - https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html Summary Method Description abbreviate 문자열을 축소시킴 abbrev..
- Total
- Today
- Yesterday
- bindservice
- 안드로이드 인텐트
- WEMIX
- notifyDataSetChanged
- onCreateContextMenu
- M2E
- task
- android intent
- registerForContextMenu
- StartService
- p2e
- 채굴앱
- mPANDO
- android task
- Android Service
- android activity flag
- 무료채굴
- BroadcastReceiver
- android flag activity
- StringUtils
- Intent
- 무료 채굴
- 안드로이드 서비스
- 리워드앱
- 앱테크 추천
- RoomDatabase
- task 생성
- 리워드 어플
- 앱테크
- onContextItemSelected
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |