- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for toShort (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
setUp(parameters.first, parameters.second) set("a", "a", "a") val snapshot = cache["a"]!! snapshot.close() val toAbort = snapshot.edit()!! toAbort.setString(0, "b") toAbort.abort() val editor = snapshot.edit()!! editor.setString(1, "a2") editor.commit() assertValue("a", "a", "a2") } @ParameterizedTest
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 75.7K bytes - Viewed (0) -
src/archive/tar/reader_test.go
{"9 a=name\n", map[string]string{"a": "name"}, true}, {"30 mtime=1350244992.023960108\n", map[string]string{"mtime": "1350244992.023960108"}, true}, {"3 somelongkey=\n", nil, false}, {"50 tooshort=\n", nil, false}, {"13 key1=haha\n13 key2=nana\n13 key3=kaka\n", map[string]string{"key1": "haha", "key2": "nana", "key3": "kaka"}, true}, {"13 key1=val1\n13 key2=val2\n8 key1=\n",
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)