Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toPrimitiveLong (0.05 sec)

  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
    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/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
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.4K bytes
    - Viewed (0)
Back to top