Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toBigDecimal (0.08 sec)

  1. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

        public void testToBigDecimal() throws Exception {
            assertNull(BigDecimalConversionUtil.toBigDecimal(null));
            assertSame(ZERO, BigDecimalConversionUtil.toBigDecimal(ZERO));
            assertEquals(new BigDecimal("1"), BigDecimalConversionUtil.toBigDecimal(Byte.valueOf((byte) 1)));
            assertEquals(new BigDecimal("10"), BigDecimalConversionUtil.toBigDecimal(Short.valueOf((short) 10)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/BigDecimalConversionUtil.java

         */
        public static BigDecimal toBigDecimal(final Object o) {
            return toBigDecimal(o, null);
        }
    
        /**
         * {@link BigDecimal}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link BigDecimal}
         */
        public static BigDecimal toBigDecimal(final Object o, final String pattern) {
            if (o == null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

            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);
            } else if (type == Long.class) {
                return LongConversionUtil.toLong(o);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java

                    return fessConfig.get(propertyKey);
                }
    
                @Override
                public BigDecimal getAsDecimal(String propertyKey) {
                    return DfTypeUtil.toBigDecimal(get(propertyKey));
                }
    
                @Override
                public Integer getAsInteger(String propertyKey) {
                    return DfTypeUtil.toInteger(get(propertyKey));
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    return fessConfig.get(propertyKey);
                }
    
                @Override
                public BigDecimal getAsDecimal(String propertyKey) {
                    return DfTypeUtil.toBigDecimal(get(propertyKey));
                }
    
                @Override
                public Integer getAsInteger(String propertyKey) {
                    return DfTypeUtil.toInteger(get(propertyKey));
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top