Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 689 for Present (0.25 sec)

  1. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        // flip GOLDEN_PRESENT_KEY to true even if it wasn't explicitly inserted
        // (false positive).
        assertThat(bloomFilter.mightContain(GOLDEN_PRESENT_KEY)).isFalse();
        for (int i = 0; i < NUM_PUTS; i++) {
          bloomFilter.put(getNonGoldenRandomKey());
        }
        bloomFilter.put(GOLDEN_PRESENT_KEY);
    
        int numThreads = 12;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_present() {
        int initialSize = getMap().size();
        assertEquals("remove(present) should return the associated value", v0(), getMap().remove(k0()));
        assertEquals(
            "remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size());
        expectMissing(e0());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

            return map.containsKey(o);
        }
    
        @Override
        public boolean add(final String o) {
            return map.put(o, PRESENT) == null;
        }
    
        @Override
        public boolean remove(final Object o) {
            return map.remove(o) == PRESENT;
        }
    
        @Override
        public void clear() {
            map.clear();
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/MultipleSetContainsBenchmark.java

            sets[i] = ImmutableSet.of();
          } else if (setSize < emptySetProportion + singletonSetProportion) {
            sets[i] = ImmutableSet.of(PRESENT);
          } else {
            sets[i] = ImmutableSet.of(PRESENT, new Object());
          }
    
          if (rng.nextDouble() < hitRate) {
            queries[i] = PRESENT;
          } else {
            queries[i] = ABSENT;
          }
        }
      }
    
      @Benchmark
      public boolean contains(int reps) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java

      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_unsupportedPresentExistingValue() {
        try {
          assertEquals(
              "putIfAbsent(present, existingValue) should return present or throw",
              v0(),
              putIfAbsent(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_unsupportedPresentExistingValue() {
        try {
          assertEquals(
              "putIfAbsent(present, existingValue) should return present or throw",
              v0(),
              getMap().putIfAbsent(k0(), v0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 18:17:52 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

        switch (presentBehavior) {
          case FIRST_PRESENT:
            if (list.contains(key)) {
              assertEquals(list.indexOf(key), answer);
              return;
            }
            break;
          case LAST_PRESENT:
            if (list.contains(key)) {
              assertEquals(list.lastIndexOf(key), answer);
              return;
            }
            break;
          case ANY_PRESENT:
            if (list.contains(key)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultDependencyManagementImporter.java

                    for (Dependency dependency : source.getDependencies()) {
                        String key = dependency.getManagementKey();
                        Dependency present = dependencies.putIfAbsent(key, dependency);
                        if (present != null && !equals(dependency, present) && !directDependencies.contains(key)) {
                            // TODO: https://issues.apache.org/jira/browse/MNG-8004
                            problems.add(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedLists.java

        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
          @Override
          <E extends @Nullable Object> int resultIndex(
              Comparator<? super E> comparator,
              @ParametricNullness E key,
              List<? extends E> list,
              int foundIndex) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. cmd/bucket-replication_test.go

    				Arn: "arn1",
    			}}}},
    			expectedSync: false,
    		},
    		{ // 5. existing object replication enabled, versioning enabled, replication status Pending & reset ID present
    			name: "existing object replication with reset in progress and object in Pending status",
    			info: ObjectInfo{
    				Size:                      100,
    				ReplicationStatusInternal: "arn1:PENDING;",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 16 09:28:06 GMT 2023
    - 12.2K bytes
    - Viewed (0)
Back to top