Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for float64 (0.2 sec)

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

                if (l != null) {
                    return l;
                }
                return Long.valueOf(0);
            } else if (type == float.class) {
                final Float f = FloatConversionUtil.toFloat(o);
                if (f != null) {
                    return f;
                }
                return new Float(0);
            } else if (type == short.class) {
                final Short s = ShortConversionUtil.toShort(o);
                if (s != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/FloatConversionUtilTest.java

    /**
     * @author higa
     *
     */
    public class FloatConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToFloat() throws Exception {
            assertEquals(new Float("1000.5"), FloatConversionUtil.toFloat("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveFloat() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/LruHashMap.java

        /**
         * デフォルトの初期容量です。
         */
        protected static final int DEFAULT_INITIAL_CAPACITY = 16;
    
        /**
         * デフォルトのロードファクタです。
         */
        protected static final float DEFAULT_LOAD_FACTOR = 0.75f;
    
        /**
         * 上限サイズです。
         */
        protected final int limitSize;
    
        /**
         * {@link LruHashMap}を作成します。
         *
         * @param limitSize
         *            エントリ数の上限
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(new BigDecimal("1000"), BigDecimalConversionUtil.toBigDecimal(Long.valueOf(1000L)));
    
            assertEquals(0, new BigDecimal("0.1").compareTo(BigDecimalConversionUtil.toBigDecimal(new Float(0.1F))));
    
            assertEquals(0, new BigDecimal("0.1").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.1D))));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Float}
         */
        public static Float toFloat(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof Float) {
                return (Float) o;
            } else if (o instanceof Number) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top