- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 305 for entrySet (0.05 seconds)
-
guava-testlib/src/com/google/common/collect/testing/Helpers.java
} // Would use Maps.immutableEntry public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> mapEntry( K key, V value) { return singletonMap(key, value).entrySet().iterator().next(); } private static boolean isEmpty(Iterable<?> iterable) { return iterable instanceof Collection ? ((Collection<?>) iterable).isEmpty() : !iterable.iterator().hasNext();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 17.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
} void test() { assertThat(expectedValues.keySet()) .containsAtLeastElementsIn(EnumSet.complementOf(EnumSet.of(UNNECESSARY))); for (Map.Entry<RoundingMode, Double> entry : expectedValues.entrySet()) { RoundingMode mode = entry.getKey(); Double expectation = entry.getValue(); assertWithMessage("roundToDouble(%s, %s)", input, mode) .that(BigIntegerMath.roundToDouble(input, mode))Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 27.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
LinkedHashMap<K, Collection<V>> orderedMap = new LinkedHashMap<>(); for (Entry<K, V> entry : ordered) { orderedMap.put(entry.getKey(), map.get(entry.getKey())); } return orderedMap.entrySet(); } @Override public K[] createKeyArray(int length) { return ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()) .createKeyArray(length); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 26.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Sep 24 22:52:18 GMT 2025 - 28.6K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeResolver.java
ImmutableMap.Builder<TypeVariableKey, Type> builder = ImmutableMap.builder(); builder.putAll(map); for (Entry<TypeVariableKey, ? extends Type> mapping : mappings.entrySet()) { TypeVariableKey variable = mapping.getKey(); Type type = mapping.getValue(); checkArgument(!variable.equalsType(type), "Type variable %s bound to itself", variable);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 22:30:05 GMT 2025 - 25.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
* containsKey(Object)}, nor by operations on the collection-views of {@link Cache#asMap}}. So, * for example, iterating through {@code Cache.asMap().entrySet()} does not reset access time for * the entries you retrieve. * * <p>When {@code duration} is zero, this method hands off to {@link #maximumSize(long)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 51.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Tables.java
* ... * Map<C, V> row = table.row(rowKey); // Needn't be in synchronized block * ... * synchronized (table) { // Synchronizing on table, not row! * Iterator<Entry<C, V>> i = row.entrySet().iterator(); // Must be in synchronized block * while (i.hasNext()) { * foo(i.next()); * } * } * } * * <p>Failure to follow this advice may result in non-deterministic behavior.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 24.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
map.put(two, three); map.remove(two, three); assertNotified(listener, two, three, RemovalCause.EXPLICIT); map.put(three, four); Iterator<?> i = map.entrySet().iterator(); i.next(); i.remove(); assertNotified(listener, three, four, RemovalCause.EXPLICIT); map.put(four, five); i = map.keySet().iterator(); i.next();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 117.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
} public void testToMultiset_empty() { assertThat(fluent().toMultiset()).isEmpty(); } public void testToMap() { assertThat(fluent(1, 2, 3).toMap(Functions.toStringFunction()).entrySet()) .containsExactly(immutableEntry(1, "1"), immutableEntry(2, "2"), immutableEntry(3, "3")) .inOrder(); } public void testToMap_nullKey() { assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 30.5K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* containsKey(Object)}, nor by operations on the collection-views of {@link Cache#asMap}}. So, * for example, iterating through {@code Cache.asMap().entrySet()} does not reset access time for * the entries you retrieve. * * <p>When {@code duration} is zero, this method hands off to {@link #maximumSize(long)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 08 18:55:33 GMT 2025 - 51.6K bytes - Click Count (0)