Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toPrimitiveInt (0.08 sec)

  1. src/main/java/org/codelibs/core/convert/IntegerConversionUtil.java

         */
        public static int toPrimitiveInt(final Object o) {
            return toPrimitiveInt(o, null);
        }
    
        /**
         * Converts to {@literal int}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@literal int}
         */
        public static int toPrimitiveInt(final Object o, final String pattern) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/IntegerConversionUtilTest.java

         */
        public void testToPrimitiveInt() throws Exception {
            assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveIntForEmptyString() throws Exception {
            assertEquals(0, IntegerConversionUtil.toPrimitiveInt(""));
        }
    
        /**
         * @throws Exception
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top