Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toDouble (0.04 sec)

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

         */
        public static Double toDouble(final Object o) {
            return toDouble(o, null);
        }
    
        /**
         * Converts to {@link Double}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Double}
         */
        public static Double toDouble(final Object o, final String pattern) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/DoubleConversionUtilTest.java

    public class DoubleConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToDouble() throws Exception {
            assertEquals(Double.valueOf("1000.5"), DoubleConversionUtil.toDouble("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveDouble() throws Exception {
            assertEquals(1000.5, DoubleConversionUtil.toPrimitiveDouble("1,000.5"), 0);
        }
    Registered: Sat Dec 20 08:55:33 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

            } else if (type == BigDecimal.class) {
                return BigDecimalConversionUtil.toBigDecimal(o);
            } else if (type == Double.class) {
                return DoubleConversionUtil.toDouble(o);
            } else if (type == Long.class) {
                return LongConversionUtil.toLong(o);
            } else if (type == Float.class) {
                return FloatConversionUtil.toFloat(o);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                    args[index] = FloatConversionUtil.toFloat(args[index]);
                    return true;
                } else if (paramTypes[index] == double.class) {
                    args[index] = DoubleConversionUtil.toDouble(args[index]);
                    return true;
                }
            } else {
                if (paramTypes[index] == Byte.class) {
                    args[index] = ByteConversionUtil.toByte(args[index]);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                    if (value instanceof final Number num) {
                        value = num.doubleValue();
                    } else {
                        value = DfTypeUtil.toDouble(value.toString());
                    }
                }
                return new Pair<>(key, value);
            }).collect(Collectors.toMap(Pair::getFirst, Pair::getSecond));
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 88.2K bytes
    - Viewed (0)
Back to top