Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPrimitiveClassIfWrapper (0.14 sec)

  1. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        /**
         *
         */
        @Test
        public void testGetPrimitiveClassIfWrapper() {
            assertThat(ClassUtil.getPrimitiveClassIfWrapper(Integer.class), is(sameClass(int.class)));
            assertThat(ClassUtil.getPrimitiveClassIfWrapper(String.class), is(sameClass(String.class)));
            assertThat(ClassUtil.getPrimitiveClassIfWrapper(Byte.class), is(sameClass(byte.class)));
        }
    
        /**
         *
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ClassUtil.java

            if (toClass == Object.class && !fromClass.isPrimitive()) {
                return true;
            }
            if (toClass.isPrimitive()) {
                fromClass = getPrimitiveClassIfWrapper(fromClass);
            }
            return toClass.isAssignableFrom(fromClass);
        }
    
        /**
         * ラッパークラスをプリミティブクラスに変換します。
         *
         * @param clazz
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top