Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for forge (0.17 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/CommonPattern.java

    @ElementTypesAreNonnullByDefault
    abstract class CommonPattern {
      public abstract CommonMatcher matcher(CharSequence t);
    
      public abstract String pattern();
    
      public abstract int flags();
    
      // Re-declare this as abstract to force subclasses to override.
      @Override
      public abstract String toString();
    
      public static CommonPattern compile(String pattern) {
        return Platform.compilePattern(pattern);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Apr 09 00:52:54 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/CommonPattern.java

    @ElementTypesAreNonnullByDefault
    abstract class CommonPattern {
      public abstract CommonMatcher matcher(CharSequence t);
    
      public abstract String pattern();
    
      public abstract int flags();
    
      // Re-declare this as abstract to force subclasses to override.
      @Override
      public abstract String toString();
    
      public static CommonPattern compile(String pattern) {
        return Platform.compilePattern(pattern);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 09 00:52:54 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.reflect.Method;
    import java.util.Locale;
    import junit.framework.TestCase;
    
    /**
     * Since annotations have some reusability issues that force copy and paste all over the place, it's
     * worth having a test to ensure that all our Feature enums have their annotations correctly set up.
     *
     * @author George van den Driessche
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  7. 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)
  8. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  9. 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)
  10. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
Back to top