- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getShortClassName (0.09 sec)
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
assertThat(ClassUtil.getPackageName(getClass()), is("org.codelibs.core.lang")); } /** * */ @Test public void testGetShortClassName() { assertThat(ClassUtil.getShortClassName(getClass().getName()), is("ClassUtilTest")); } /** * */ @Test(expected = NoSuchConstructorRuntimeException.class) public void testGetConstructor() {
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からパッケージ名を除いた名前を返します。 * * @param className * クラス名。{@literal null}や空文字列であってはいけません * @return FQCNからパッケージ名を除いた名前 */ public static String getShortClassName(final String className) { assertArgumentNotEmpty("className", className); final int i = className.lastIndexOf('.'); if (i > 0) { return className.substring(i + 1); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)