Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 198 for KeySet (1.39 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        assertTrue(multimap().put(k1(), v4()));
        assertTrue(asMapEntrySet.remove(asMapEntry0));
        assertEquals(1, multimap().size());
        assertContentsInOrder(multimap().keySet(), k1());
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testAsMapEntrySetIteratorRemovePropagatesToMultimap() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/EnumBiMap.java

        }
        if (map instanceof EnumHashBiMap) {
          return ((EnumHashBiMap<K, ?>) map).keyTypeOrObjectUnderJ2cl;
        }
        checkArgument(!map.isEmpty());
        return getDeclaringClassOrObjectForJ2cl(map.keySet().iterator().next());
      }
    
      private static <V extends Enum<V>> Class<V> inferValueTypeOrObjectUnderJ2cl(Map<?, V> map) {
        if (map instanceof EnumBiMap) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

          ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
          for (int i = 0; i < elements.length; i++) {
            builder.put(elements[i], i);
          }
          return builder.buildOrThrow().keySet().asList();
        }
      }
    
      public static class ImmutableMapValueListGenerator extends TestStringListGenerator {
        @Override
        public List<String> create(String[] elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testPutAbsentConcurrentWithKeySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<K> iterator = getMap().keySet().iterator();
              put(e3());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_PUT})
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableTable.java

        return MoreObjects.firstNonNull(
            (ImmutableMap<R, V>) columnMap().get(columnKey), ImmutableMap.<R, V>of());
      }
    
      @Override
      public ImmutableSet<C> columnKeySet() {
        return columnMap().keySet();
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The value {@code Map<R, V>} instances in the returned map are {@link ImmutableMap} instances
       * as well.
       */
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            } catch (InterruptedException e) {
                scheduler.shutdownNow();
                Thread.currentThread().interrupt();
            }
    
            // Stop all change watchers
            for (String path : directoryCache.keySet()) {
                changeNotifier.stopWatching(path);
            }
    
            // Clear caches
            directoryCache.clear();
            leaseToPath.clear();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java

        }
    
        assertEquals(values.size(), multimap().get(key).size());
    
        assertEquals(values.size() > 0, multimap().containsKey(key));
        assertEquals(values.size() > 0, multimap().keySet().contains(key));
        assertEquals(values.size() > 0, multimap().keys().contains(key));
      }
    
      protected final K k0() {
        return e0().getKey();
      }
    
      protected final V v0() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                            PopulatableMapAsMultimap.create();
                        populateMultimapForKeySet(multimap, elements);
                        return multimap.build().keySet();
                      }
                    })
                .named("Multimaps.forMap.keySet")
                .withFeatures(FOR_MAP_FEATURES_ANY)
                .createTestSuite());
    
        // TODO: use collection testers on Multimaps.forMap.values
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        }
    
        @CanIgnoreReturnValue
        RoundToDoubleTester roundUnnecessaryShouldThrow() {
          unnecessaryShouldThrow = true;
          return this;
        }
    
        void test() {
          assertThat(expectedValues.keySet())
              .containsAtLeastElementsIn(EnumSet.complementOf(EnumSet.of(UNNECESSARY)));
          for (Map.Entry<RoundingMode, Double> entry : expectedValues.entrySet()) {
            RoundingMode mode = entry.getKey();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

            map.put(entry.getElement(), entry);
          }
    
          Set<E> seen = new HashSet<>();
          List<Entry<E>> order = new ArrayList<>();
          for (E e : gen.order(new ArrayList<E>(map.keySet()))) {
            if (seen.add(e)) {
              order.add(map.get(e));
            }
          }
          return order;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top