- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for key2 (0.32 sec)
-
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()))); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Maps.java
*/ public static <KEY, VALUE> Maps<KEY, VALUE> concurrentHashMap(final KEY key, final VALUE value) { return new Maps<>(new ConcurrentHashMap<KEY, VALUE>()).$(key, value); } /** * 指定されたキーと値を持つ{@link HashMap}を構築するための{@literal Maps}を返します。 * * @param <KEY> * <code>Map</code>のキーの型 * @param <VALUE> * <code>Map</code>の値ーの型 * @param key
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 10.7K 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)); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
public void setTransformation(final String transformation) { this.transformation = transformation; } public String getKey() { return key; } public void setKey(final String key) { this.key = key; } public String getCharsetName() { return charsetName; } public void setCharsetName(final String charsetName) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/IllegalKeyOfBeanMapException.java
/** * インスタンスを構築します。 * * @param key * マップのキー * @param map * マップ */ public IllegalKeyOfBeanMapException(final Object key, final Map<?, ?> map) { super("key", "ECL0016", asArray(key, map)); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanMapTest.java
/** * @throws Exception */ @Test public void testGet_NotContains() throws Exception { exception.expect(IllegalKeyOfBeanMapException.class); exception.expectMessage(is("[ECL0016]key[xxx] is not included in this BeanMap : {aaa=1, bbb=2}.")); final BeanMap map = new BeanMap(); map.put("aaa", 1); map.put("bbb", 2); map.get("xxx"); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
* リソースバンドル。{@literal null}や空文字列であってはいけません * @param key * キー * @return 指定されたキーの文字列。{@literal null}や空文字列であってはいけません * @see ResourceBundle#getString(String) */ public static String getString(final ResourceBundle bundle, final String key) { assertArgumentNotNull("bundle", bundle); assertArgumentNotEmpty("key", key); try { return bundle.getString(key);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CaseInsensitiveMap.java
* キーが含まれているかどうかを返します。 * * @param key * キー * @return キーが含まれているかどうか */ public boolean containsKey(final String key) { return super.containsKey(convertKey(key)); } @Override public V get(final Object key) { return super.get(convertKey(key)); } @Override public final V put(final String key, final V value) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayMap.java
@Override public boolean containsKey(final Object key) { final Entry<K, V>[] tbl = mapTable; if (key != null) { final int hashCode = key.hashCode(); final int index = (hashCode & 0x7FFFFFFF) % tbl.length; for (Entry<K, V> e = tbl[index]; e != null; e = e.next) { if (e.hashCode == hashCode && key.equals(e.key)) { return true; }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 20.6K bytes - Viewed (1)