Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for forge (0.26 sec)

  1. android/guava/src/com/google/common/collect/HashBiMap.java

      V put(@ParametricNullness K key, @ParametricNullness V value, boolean force) {
        int keyHash = Hashing.smearedHash(key);
        int entryForKey = findEntryByKey(key, keyHash);
        if (entryForKey != ABSENT) {
          V oldValue = values[entryForKey];
          if (Objects.equal(oldValue, value)) {
            return value;
          } else {
            replaceValueInEntry(entryForKey, value, force);
            return oldValue;
          }
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/HashBiMap.java

      public V put(@ParametricNullness K key, @ParametricNullness V value) {
        return put(key, value, false);
      }
    
      @CheckForNull
      private V put(@ParametricNullness K key, @ParametricNullness V value, boolean force) {
        int keyHash = smearedHash(key);
        int valueHash = smearedHash(value);
    
        BiEntry<K, V> oldEntryForKey = seekByKey(key, keyHash);
        if (oldEntryForKey != null
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

            return ImmutableMap.builder()
                .putAll(Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")))
                .buildOrThrow();
          }
        },
        FORCE_JDK {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

     * strategies.
     *
     * <ul>
     *   <li>SafeAtomicHelper: uses Atomic FieldsUpdaters to implement synchronization
     *   <li>SynchronizedHelper: uses {@code synchronized} blocks for synchronization
     * </ul>
     *
     * To force selection of our fallback strategies we load {@link AggregateFutureState} (and all of
     * {@code com.google.common.util.concurrent}) in degenerate class loaders which make certain
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

      public void testAddAllAtIndex_nullSupported() {
        List<E> containsNull = singletonList(null);
        assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull));
        /*
         * We need (E) to force interpretation of null as the single element of a
         * varargs array, not the array itself
         */
        expectAdded(0, (E) null);
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      public void testAddAll_nullSupported() {
        List<E> containsNull = singletonList(null);
        assertTrue("addAll(containsNull) should return true", collection.addAll(containsNull));
        /*
         * We need (E) to force interpretation of null as the single element of a
         * varargs array, not the array itself
         */
        expectAdded((E) null);
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

          ImmutableDoubleArray.builder(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell
       * out of it for a while and see what happens.
       */
      public void testBuilder_bruteForce() {
        for (int i = 0; i < reduceIterationsIfGwt(100); i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

          ImmutableLongArray.builder(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell
       * out of it for a while and see what happens.
       */
      public void testBuilder_bruteForce() {
        for (int i = 0; i < reduceIterationsIfGwt(100); i++) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

                  // If this check ever fails, that means we need to either bump the
                  // number of expected insertions or don't run the test for so long.
                  // Don't forget, the bloom filter slowly saturates over time and the
                  // expected false positive probability goes up!
                  assertThat(bloomFilter.expectedFpp()).isLessThan(safetyFalsePositiveRate);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

     * </ul>
     *
     * <p>Disadvantages compared to {@code int[]}:
     *
     * <ul>
     *   <li>Memory footprint has a fixed overhead (about 24 bytes per instance).
     *   <li><i>Some</i> construction use cases force the data to be copied (though several construction
     *       APIs are offered that don't).
     *   <li>Can't be passed directly to methods that expect {@code int[]} (though the most common
     *       utilities do have replacements here).
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top