- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,340 for valueOf (0.22 sec)
-
src/main/java/org/codelibs/core/convert/ShortConversionUtil.java
} else if (o instanceof String) { return toShort((String) o); } else if (o instanceof java.util.Date) { if (pattern != null) { return Short.valueOf(new SimpleDateFormat(pattern).format(o)); } return (short) ((java.util.Date) o).getTime(); } else if (o instanceof Boolean) { return ((Boolean) o) ? (short) 1 : (short) 0;
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.8K bytes - Viewed (0) -
schema/schema.go
return nil, fmt.Errorf("%w: %+v", ErrUnsupportedDataType, dest) } modelType := reflect.ValueOf(dest).Type() if modelType.Kind() == reflect.Ptr { modelType = modelType.Elem() } if modelType.Kind() != reflect.Struct { if modelType.Kind() == reflect.Interface { modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type() }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Oct 31 12:13:56 UTC 2025 - 13.1K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java
/** * Method interpolatedTrimmed. * * @param value a value object. * @param context a context object. * @return String */ private String interpolatedTrimmed(String value, String context) { return getTrimmedValue(contentTransformer.transform(value, context)); } // -- String interpolatedTrimmed( String, String ) /** * Method nextTag.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Oct 27 13:24:03 UTC 2025 - 25.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return generateListMultimap(key, value); } @Generates static <K, V> ImmutableMultimap<K, V> generateImmutableMultimap(K key, V value) { return ImmutableMultimap.of(key, value); } @Generates static <K, V> ListMultimap<K, V> generateListMultimap(@Nullable K key, @Nullable V value) { return generateArrayListMultimap(key, value); } @Generates
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.7K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RequestDataTest.java
assertEquals(Method.POST, Method.valueOf("POST")); assertEquals(Method.HEAD, Method.valueOf("HEAD")); } public void test_complexScenario() { // Test a complex scenario with multiple operations RequestData data = new RequestData(); // Set values data.setMethod("POST"); data.setUrl("https://api.example.com/endpoint");
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java
final MyBean myBean = new MyBean(); final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final PropertyDesc propDesc = beanDesc.getPropertyDesc("ggg"); propDesc.setValue(myBean, Integer.valueOf(1)); assertThat(myBean.getGgg(), is(new BigDecimal(1))); } /** * @throws Exception */ @Test public void testSetTimestampValue() throws Exception {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/LongConversionUtil.java
case java.util.Date d -> pattern != null ? Long.valueOf(new SimpleDateFormat(pattern).format(d)) : d.getTime(); case Boolean b -> b ? 1L : 0L; default -> toLong(o.toString()); }; } private static Long toLong(final String s) { if (StringUtil.isEmpty(s)) { return null; } return Long.valueOf(DecimalFormatUtil.normalize(s)); } /**
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java
assertThat(new CopyOptions().convertValue(Integer.valueOf(1), "aaa", null), is((Object) 1)); } /** * @throws Exception */ @Test public void testConvertValue_propertyConverter_asString() throws Exception { assertThat(new CopyOptions().converter(new NumberConverter("##0"), "aaa").convertValue(Integer.valueOf(1), "aaa", null), is((Object) "1")); }
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 12K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java
* <li>If the value is null, get the value from the context.</li> * <li>If the value is null, but the context contains the expression, don't replace the expression string * with the value, and continue to find other expressions.</li> * <li>If the value is null, get it from the model properties.</li> * </ul> */ @Override
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
for (int i = 0; i < num; i++) { hmap.put(String.valueOf(i), null); } System.out.println("HashMap.put:" + (System.currentTimeMillis() - start)); start = System.currentTimeMillis(); for (int i = 0; i < num; i++) { amap.put(String.valueOf(i), null); } System.out.println("ArrayMap.put:" + (System.currentTimeMillis() - start));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 10.7K bytes - Viewed (0)