Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,104 for Present (0.18 sec)

  1. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentToPresent() {
        assertEquals(
            "Map.compute(present, functionReturningValue) should return new value",
            v3(),
            getMap()
                .compute(
                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. android/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)
  5. android/guava/src/com/google/common/primitives/SignedBytes.java

      public static int compare(byte a, byte b) {
        return a - b; // safe due to restricted range
      }
    
      /**
       * Returns the least value present in {@code array}.
       *
       * @param array a <i>nonempty</i> array of {@code byte} values
       * @return the value present in {@code array} that is less than or equal to every other value in
       *     the array
       * @throws IllegalArgumentException if {@code array} is empty
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_present() {
        assertEquals(
            "getOrDefault(present, def) should return the associated value",
            v0(),
            getMap().getOrDefault(k0(), v3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_presentNullDefault() {
        assertEquals(
            "getOrDefault(present, null) should return the associated value",
            v0(),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.3K bytes
    - Viewed (0)
  9. 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)
  10. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.9K bytes
    - Viewed (0)
Back to top