- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for Put (0.02 sec)
-
src/test/java/org/codelibs/core/beans/util/BeanMapTest.java
/** * @throws Exception */ @Test public void testGet() throws Exception { final BeanMap map = new BeanMap(); map.put("aaa", 1); map.put("bbb", 2); assertThat(map.get("aaa"), is((Object) 1)); } /** * @throws Exception */ @Test public void testGet_NotContains() throws Exception {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
lru.put("aaa", "111"); lru.put("bbb", "222"); lru.put("ccc", "333"); assertThat(lru.get("aaa"), is("111")); Iterator<String> i = lru.keySet().iterator(); assertThat(i.next(), is("bbb")); assertThat(i.next(), is("ccc")); assertThat(i.next(), is("aaa")); lru.put("ddd", "444"); assertThat(lru.size(), is(3));
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
* @throws Exception */ @Test public void testCopy_MapToBean() throws Exception { final Map<String, Object> map = newHashMap(); map.put("a", "A"); map.put("b", true); map.put("c", 3); map.put("d", 1.4); final HogeDto hoge = new HogeDto(); BeanUtil.copyMapToBean(map, hoge); assertThat(hoge.getA(), is("A"));
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/AnnotationUtil.java
for (final String name : beanDesc.getMethodNames()) { final Object v = getProperty(beanDesc, annotation, name); if (v != null) { map.put(name, v); } } return map; } /** * アノテーションの要素の値を返します。 * * @param beanDesc * アノテーションを表す{@link BeanDesc} * @param annotation
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
list = newArrayList(); methodDescListMap.put(methodName, list); } list.add(new MethodDescImpl(this, method)); } for (int i = 0; i < methodDescListMap.size(); ++i) { final List<MethodDesc> methodDescList = methodDescListMap.getAt(i); methodDescsCache.put(methodDescListMap.getKeyAt(i), methodDescList.toArray(new MethodDesc[methodDescList.size()]));
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 26.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/stream/StreamUtilTest.java
assertEquals(0, (int) StreamUtil.stream(map).get(s -> s.toArray().length)); } public void test_ofMap() { Map<String, String> map = new HashMap<String, String>(); map.put("key1", "value1"); map.put("key2", "value2"); StreamUtil.stream(map).of(s -> s.forEach(m -> assertEquals(map.get(m.getKey()), m.getValue()))); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
for (final Enumeration<String> e = bundle.getKeys(); e.hasMoreElements();) { final String key = e.nextElement(); final String value = bundle.getString(key); ret.put(key, value); } return ret; } /** * リソースバンドルを{@link Map}に変換して返します。 * * @param name * リソースバンドルの名前。{@literal null}や空文字列であってはいけません
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/CollectionsUtilTest.java
* . */ @Test public void testIsNotEmptyMapOfQQ() { final HashMap<String, String> map = new HashMap<String, String>(); map.put("key", "value"); assertThat(CollectionsUtil.isNotEmpty(map), is(true)); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
primitiveToWrapperMap.put(Boolean.TYPE, Boolean.class); primitiveToWrapperMap.put(Character.TYPE, Character.class); primitiveToWrapperMap.put(Byte.TYPE, Byte.class); primitiveToWrapperMap.put(Short.TYPE, Short.class); primitiveToWrapperMap.put(Integer.TYPE, Integer.class); primitiveToWrapperMap.put(Long.TYPE, Long.class);
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)