Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IntegerConversionUtil (0.07 sec)

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

    import org.codelibs.core.text.DecimalFormatUtil;
    
    /**
     * Utility class for conversions related to {@link Integer}.
     *
     * @author higa
     */
    public abstract class IntegerConversionUtil {
    
        /**
         * Do not instantiate.
         */
        protected IntegerConversionUtil() {
        }
    
        /**
         * Converts to {@link Integer}.
         *
         * @param o
         *            The object to convert
    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 testToInteger() throws Exception {
            assertEquals(Integer.valueOf("1000"), IntegerConversionUtil.toInteger("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveInt() throws Exception {
            assertEquals(1000, IntegerConversionUtil.toPrimitiveInt("1,000"));
        }
    
        /**
         * @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)
  3. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

         * @return {@link Number} converted to {@literal type}
         */
        public static Object convertNumber(final Class<?> type, final Object o) {
            if (type == Integer.class) {
                return IntegerConversionUtil.toInteger(o);
            } else if (type == BigDecimal.class) {
                return BigDecimalConversionUtil.toBigDecimal(o);
            } else if (type == Double.class) {
                return DoubleConversionUtil.toDouble(o);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top