Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toFont (0.19 sec)

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

     *
     */
    public class LongConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToLong() throws Exception {
            assertEquals(new Long("1000"), LongConversionUtil.toLong("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveLong() throws Exception {
            assertEquals(1000, LongConversionUtil.toPrimitiveLong("1,000"));
        }
    
        /**
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

            } 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);
            } else if (type == Short.class) {
                return ShortConversionUtil.toShort(o);
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof BigInteger) {
                return (BigInteger) o;
            } else {
                final Long l = LongConversionUtil.toLong(o, pattern);
                if (l == null) {
                    return null;
                }
                return BigInteger.valueOf(l);
            }
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                    args[index] = IntegerConversionUtil.toInteger(args[index]);
                    return true;
                } else if (paramTypes[index] == long.class) {
                    args[index] = LongConversionUtil.toLong(args[index]);
                    return true;
                } else if (paramTypes[index] == float.class) {
                    args[index] = FloatConversionUtil.toFloat(args[index]);
                    return true;
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

         * @return 変換された{@link Long}
         */
        public static Long toLong(final Object o) {
            return toLong(o, null);
        }
    
        /**
         * {@link Long}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Long}
         */
        public static Long toLong(final Object o, final String pattern) {
            if (o == null) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top