- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for splitPackageAndShortClassName (0.18 sec)
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
/** * */ @Test public void testSplitPackageAndShortClassName() { String[] ret = ClassUtil.splitPackageAndShortClassName("aaa.Hoge"); assertThat(ret[0], is("aaa")); assertThat(ret[1], is("Hoge")); ret = ClassUtil.splitPackageAndShortClassName("Hoge"); assertThat(ret[0], is(nullValue())); assertThat(ret[1], is("Hoge")); } /** *
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* FQCNをパッケージ名とFQCNからパッケージ名を除いた名前に分けます。 * * @param className * クラス名。{@literal null}や空文字列であってはいけません * @return パッケージ名とFQCNからパッケージ名を除いた名前 */ public static String[] splitPackageAndShortClassName(final String className) { assertArgumentNotEmpty("className", className); final String[] ret = new String[2]; final int i = className.lastIndexOf('.'); if (i > 0) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)