Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for toPrimitiveLong (0.13 seconds)

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

         *
         * @param o
         *            the object to convert
         * @return the converted {@literal long}
         */
        public static long toPrimitiveLong(final Object o) {
            return toPrimitiveLong(o, null);
        }
    
        /**
         * Converts the given object to a {@literal long}.
         *
         * @param o
         *            the object to convert
         * @param pattern
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/convert/LongConversionUtilTest.java

         */
        public void testToPrimitiveLong() throws Exception {
            assertEquals(1000, LongConversionUtil.toPrimitiveLong("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveLongForEmptyString() throws Exception {
            assertEquals(0, LongConversionUtil.toPrimitiveLong(""));
        }
    
        /**
         * @throws Exception
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 1.4K bytes
    - Click Count (0)
Back to Top