- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,616 for map (0.42 sec)
-
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
Map<String, Long> in = ImmutableMap.of("1", 1L, "2", 2L, "3", 3L); AtomicLongMap<String> map = AtomicLongMap.create(); assertTrue(map.isEmpty()); assertEquals(0, map.size()); assertFalse(map.containsKey("1")); assertFalse(map.containsKey("2")); assertFalse(map.containsKey("3")); assertEquals(0L, map.get("1")); assertEquals(0L, map.get("2")); assertEquals(0L, map.get("3")); map.putAll(in);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 17.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
Map<Integer, String> map = CompactLinkedHashMap.create(); map.put(1, "a"); map.put(4, "b"); map.put(3, "d"); map.put(2, "c"); map.remove(4); testHasMapEntriesInOrder(map, 1, "a", 3, "d", 2, "c"); } public void testInsertionOrderAfterRemoveLastEntry() { Map<Integer, String> map = CompactLinkedHashMap.create(); map.put(1, "a"); map.put(4, "b"); map.put(3, "d");
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Feb 21 14:41:51 GMT 2020 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
} public void testTransformSingletonMapEquality() { Map<String, String> map = Maps.transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction()); Map<String, String> expected = ImmutableMap.of("a", "1"); assertMapsEqual(expected, map); assertEquals(expected.get("a"), map.get("a")); } public void testTransformIdentityFunctionEquality() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 12.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(map.isEmpty(), is(false)); assertThat(map.get(Foo.class.getTypeParameters()[0]), is(sameClass(Object.class))); } /** * @throws Exception */ public void testGenericMethod() throws Exception { final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Fuga.class); assertThat(map, is(notNullValue())); assertThat(map.isEmpty(), is(true));
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/SearchLogService.java
return buckets.stream().map(e -> { final Map<String, Object> map = new HashMap<>(); map.put(ID, Base64.getUrlEncoder().encodeToString(e.getKeyAsString().getBytes(StandardCharsets.UTF_8))); map.put(KEY, e.getKeyAsString()); map.put(COUNT, e.getDocCount()); return map; }).collect(Collectors.toList());
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 28.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
return new ConcurrentHashMap<>(map); } }, ImmutableMapImpl { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { return ImmutableMap.copyOf(map); } }, MapMakerStrongKeysStrongValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
return new ConcurrentHashMap<>(map); } }, ImmutableMapImpl { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { return ImmutableMap.copyOf(map); } }, MapMakerStrongKeysStrongValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 12.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java
final Map<TypeVariable<?>, Type> map) { assertArgumentNotNull("constructor", constructor); assertArgumentNotNull("map", map); return createParameterizedClassDesc(constructor.getGenericParameterTypes()[index], map); } /** * メソッドの引数型を表現する{@link ParameterizedClassDesc}を作成して返します。 *
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 7.9K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableBiMapMapInterfaceTest.java
assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString()); assertEquals("[" + JOINER.join(map.values()) + "]", map.values().toString()); assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); assertEquals(Sets.newHashSet(map.keySet()), map.keySet()); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Mar 09 16:16:28 GMT 2022 - 1.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java
map.put("two", "2"); } /** * @throws Exception */ @After public void tearDown() throws Exception { map = null; } /** * @throws Exception */ @Test public void testContainsKey() throws Exception { assertThat(map.containsKey("ONE"), is(true)); assertThat(map.containsKey("one"), is(true));
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 4K bytes - Viewed (0)