Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 838 for useEmpty (0.13 sec)

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

            multimap.asMap().entrySet(), immutableEntry(sampleKey, sampleValueAsCollection));
    
        // Test #values()
    
        assertMultimapRemainsUnmodified(multimap, originalEntries);
        if (!multimap.isEmpty()) {
          Collection<V> values = multimap.asMap().entrySet().iterator().next().getValue();
    
          assertCollectionIsUnmodifiable(values, sampleValue);
        }
    
        // Test #entries()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        assertThat(keySet).isEmpty();
    
        // add 0, 1, 2, 3, 4
        getAll(cache, asList(0, 1, 2, 3, 4));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(0, 1, 2, 3, 4);
    
        // invalidate all
        cache.invalidateAll();
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).isEmpty();
    
        // add 5, 6, 7, 8, 9, 10, 11, 12
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeBasedTable.java

        // If the row was previously empty, we check if there's a new row here every time we're queried.
        void updateWholeRowField() {
          if (wholeRow == null || (wholeRow.isEmpty() && backingMap.containsKey(rowKey))) {
            wholeRow = (SortedMap<C, V>) backingMap.get(rowKey);
          }
        }
    
        @Override
        @CheckForNull
        SortedMap<C, V> computeBackingRowMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

          JdkBackedImmutableMultiset.create(ImmutableList.of());
    
      RegularImmutableMultiset() {}
    
      static <E> ImmutableMultiset<E> create(Collection<? extends Entry<? extends E>> entries) {
        if (entries.isEmpty()) {
          return ImmutableMultiset.of();
        } else {
          return JdkBackedImmutableMultiset.create(entries);
        }
      }
    
      @Override
      public int count(@Nullable Object element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ConsumingQueueIterator.java

        this.queue = checkNotNull(queue);
      }
    
      @Override
      @CheckForNull
      protected T computeNext() {
        // TODO(b/192579700): Use a ternary once it no longer confuses our nullness checker.
        if (queue.isEmpty()) {
          return endOfData();
        }
        return queue.remove();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

        TreeSet<Derived> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
        assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
      }
    
      public void testNewTreeSetEmptyNonGeneric() {
        TreeSet<LegacyComparable> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new LegacyComparable("foo"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/MavenArtifact.java

        MavenArtifact(String repositoryUrl, Resource resource) {
            if (repositoryUrl == null) {
                this.repositoryUrl = "";
            } else if (!repositoryUrl.endsWith("/") && !repositoryUrl.isEmpty()) {
                this.repositoryUrl = repositoryUrl + '/';
            } else {
                this.repositoryUrl = repositoryUrl;
            }
            this.resource = resource;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

        assertThat(getSubscriber().declaredIn2AnnotatedInClassEvents).contains(EVENT);
      }
    
      public void testNowhereAnnotated() {
        assertThat(getSubscriber().nowhereAnnotatedEvents).isEmpty();
      }
    
      @Override
      SubscriberClass createSubscriber() {
        return new SubscriberClass();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 08 21:35:40 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

      // original character value.
      @VisibleForTesting
      static char[][] createReplacementArray(Map<Character, String> map) {
        checkNotNull(map); // GWT specific check (do not optimize)
        if (map.isEmpty()) {
          return EMPTY_REPLACEMENT_ARRAY;
        }
        char max = max(map.keySet());
        char[][] replacements = new char[max + 1][];
        for (Character c : map.keySet()) {
          replacements[c] = map.get(c).toCharArray();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java

                    // if we're building an argument, keep doing so.
                    // if this is the case of "-Dfoo=bar", then we need to adjust the buffer.
                    if (!currentArg.isEmpty()) {
                        currentArg.setLength(currentArg.length() - 1);
                    }
    
                    cleaned.add(currentArg.toString());
    
                    currentArg = null;
                    addedToBuffer = false;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top