Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 231 for containsKey (0.21 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        for (int i = MIN_BOUND - 1; i <= MAX_BOUND + 1; i++) {
          assertEquals(model.get(i), test.get(i));
    
          Entry<Range<Integer>, Integer> entry = test.getEntry(i);
          assertEquals(model.containsKey(i), entry != null);
          if (entry != null) {
            assertTrue(test.asMapOfRanges().entrySet().contains(entry));
          }
        }
        for (Range<Integer> range : test.asMapOfRanges().keySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                Map<String, Server> serversById = new HashMap<>();
    
                if (servers != null) {
                    for (Server server : servers) {
                        if (!serversById.containsKey(server.getId())) {
                            serversById.put(server.getId(), server);
                        }
                    }
                }
    
                for (ArtifactRepository repository : repositories) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/ArrayMap.java

                    if (listTable[i].value == null) {
                        return i;
                    }
                }
            }
            return -1;
        }
    
        @Override
        public boolean containsKey(final Object key) {
            final Entry<K, V>[] tbl = mapTable;
            if (key != null) {
                final int hashCode = key.hashCode();
                final int index = (hashCode & 0x7FFFFFFF) % tbl.length;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        tester.testAllPublicInstanceMethods(MinMaxPriorityQueue.<String>create());
      }
    
      private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) {
        if (replica.containsKey(newValue)) {
          replica.get(newValue).incrementAndGet();
        } else {
          replica.put(newValue, new AtomicInteger(1));
        }
      }
    
      private static void removeMinFromReplica(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InternetDomainName.java

            return i;
          }
    
          // Excluded domains (e.g. !nhs.uk) use the next highest
          // domain as the effective public suffix (e.g. uk).
    
          if (PublicSuffixPatterns.EXCLUDED.containsKey(ancestorName)) {
            return i + 1;
          }
        }
    
        return NO_SUFFIX_FOUND;
      }
    
      /**
       * Returns an instance of {@link InternetDomainName} after lenient validation. Specifically,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/TypeResolver.java

        }
    
        @Override
        void visitWildcardType(WildcardType t) {
          visit(t.getUpperBounds());
        }
    
        private void map(TypeVariableKey var, Type arg) {
          if (mappings.containsKey(var)) {
            // Mapping already established
            // This is possible when following both superClass -> enclosingClass
            // and enclosingclass -> superClass paths.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

                // Before blocking, confirm that the stream we're writing is still open. It's possible
                // that the stream has since been closed (such as if this write timed out.)
                if (!streams.containsKey(streamId)) {
                  throw IOException("stream closed")
                }
                condition.await() // Wait until we receive a WINDOW_UPDATE.
              }
            } catch (e: InterruptedException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          Preconditions.checkState(
              this != acquiredLock,
              "Attempted to acquire multiple locks with the same rank %s",
              acquiredLock.getLockName());
    
          if (allowedPriorLocks.containsKey(acquiredLock)) {
            // The acquisition ordering from "acquiredLock" to "this" has already
            // been verified as safe. In a properly written application, this is
            // the common case.
            return;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

          Array.set(array, 0, generate(componentType));
          return array;
        }
        Method emptyGenerate = EMPTY_GENERATORS.get(rawType);
        if (emptyGenerate != null) {
          if (emptyInstanceGenerated.containsKey(type.getType())) {
            // empty instance already generated
            if (emptyInstanceGenerated.get(type.getType()).intValue() == freshness.get()) {
              // same freshness, generate again.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/ClassPath.java

          entries.putAll(getClassPathEntries(parent));
        }
        for (URL url : getClassLoaderUrls(classloader)) {
          if (url.getProtocol().equals("file")) {
            File file = toFile(url);
            if (!entries.containsKey(file)) {
              entries.put(file, classloader);
            }
          }
        }
        return ImmutableMap.copyOf(entries);
      }
    
      private static ImmutableList<URL> getClassLoaderUrls(ClassLoader classloader) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
Back to top