Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toShort (0.05 sec)

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

         */
        public static Short toShort(final Object o) {
            return toShort(o, null);
        }
    
        /**
         * Converts to {@link Short}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Short}
         */
        public static Short toShort(final Object o, final String pattern) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java

     */
    public class ShortConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToShort() throws Exception {
            assertEquals(Short.valueOf("1000"), ShortConversionUtil.toShort("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveShort() throws Exception {
            assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000"));
        }
    
    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 LongConversionUtil.toLong(o);
            } else if (type == Float.class) {
                return FloatConversionUtil.toFloat(o);
            } else if (type == Short.class) {
                return ShortConversionUtil.toShort(o);
            } else if (type == BigInteger.class) {
                return BigIntegerConversionUtil.toBigInteger(o);
            } else if (type == Byte.class) {
                return ByteConversionUtil.toByte(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)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                    args[index] = ByteConversionUtil.toByte(args[index]);
                    return true;
                } else if (paramTypes[index] == short.class) {
                    args[index] = ShortConversionUtil.toShort(args[index]);
                    return true;
                } else if (paramTypes[index] == int.class) {
                    args[index] = IntegerConversionUtil.toInteger(args[index]);
                    return true;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  5. src/archive/tar/strconv_test.go

    		{"632 k=1\n", "632 k=1\n", "", "", false},
    		{"16 longkeyname=hahaha\n", "16 longkeyname=hahaha\n", "", "", false},
    		{"3 somelongkey=\n", "3 somelongkey=\n", "", "", false},
    		{"50 tooshort=\n", "50 tooshort=\n", "", "", false},
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top