- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 306 for entrySet (0.05 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
assertEquals(2, keys.count(k0())); assertEquals(1, keys.count(k1())); assertEquals(3, keys.size()); assertContainsAllOf(keys, k0(), k1()); assertContainsAllOf( keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1)); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES) public void testKeysCountAbsentNullKey() { assertEquals(0, multimap().keys().count(null));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
Set<Entry<K, V>> entrySet = getMap().entrySet(); Iterator<Entry<K, V>> entryItr = entrySet.iterator(); assertEquals(e0(), entryItr.next()); entryItr.remove(); assertTrue(getMap().isEmpty()); assertFalse(entrySet.contains(e0())); } public void testContainsEntryWithIncomparableKey() { try { assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
Set<Entry<K, V>> entrySet = getMap().entrySet(); Iterator<Entry<K, V>> entryItr = entrySet.iterator(); assertEquals(e0(), entryItr.next()); entryItr.remove(); assertTrue(getMap().isEmpty()); assertFalse(entrySet.contains(e0())); } public void testContainsEntryWithIncomparableKey() { try { assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java
abstract Iterator<Entry<E>> entryIterator(); @Nullable private transient Set<Entry<E>> entrySet; @Override public Set<Entry<E>> entrySet() { Set<Entry<E>> result = entrySet; return (result == null) ? entrySet = createEntrySet() : result; } Set<Entry<E>> createEntrySet() { return new Multisets.EntrySet<E>() { @Override Multiset<E> multiset() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 24 16:03:45 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
} @Override public Set<Entry<K, V>> entrySet() { return new ForwardingSet<Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return delegate.entrySet(); } @Override public Iterator<Entry<K, V>> iterator() { return Iterators.unmodifiableIterator(delegate.entrySet().iterator()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
} public void testEntrySet() { Map<String, Integer> map = create(); Set<Entry<String, Integer>> entrySet = map.entrySet(); assertTrue(entrySet instanceof SynchronizedSet); assertSame(mutex, ((SynchronizedSet<?>) entrySet).mutex); } public void testEquals() { boolean unused = create().equals(new HashMap<String, Integer>()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
public void testEntrySetMutationThrows() { map.putInstance(String.class, "test"); assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey()); assertEquals("test", map.entrySet().iterator().next().getValue()); assertThrows( UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1)); } public void testEntrySetToArrayMutationThrows() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 7.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/filter/EncodingFilter.java
final HttpServletRequest req = (HttpServletRequest) request; final String servletPath = req.getServletPath(); for (final Map.Entry<String, String> entry : encodingMap.entrySet()) { final String path = entry.getKey(); if (servletPath.startsWith(path)) { req.setCharacterEncoding(entry.getValue());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java
*/ ALLOWS_NULL_VALUE_QUERIES, ALLOWS_NULL_VALUES(ALLOWS_NULL_VALUE_QUERIES), /** * The map does not throw {@code NullPointerException} on calls such as {@code * entrySet().contains(null)} or {@code entrySet().remove(null)} */ ALLOWS_NULL_ENTRY_QUERIES, /** * The map does not throw {@code NullPointerException} on any {@code null} queries. * * @see #ALLOWS_NULL_KEY_QUERIES
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java
* * TODO(cpovirk): decide what the best long-term action here is: force users * to suppress (as we do now), stop testing entrySet().add() at all, make * entrySet().add() tests tolerant of either behavior, introduce a map * feature for entrySet() that supports add(), or something else */ return asList( getAddUnsupportedNotPresentMethod(), getAddAllUnsupportedNonePresentMethod(),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.8K bytes - Viewed (0)