Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for Merge (0.43 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    
    /**
     * Test suite for {@link CacheBuilder}. TODO(cpovirk): merge into CacheBuilderTest?
     *
     * @author Jon Donovan
     */
    @GwtCompatible
    public class CacheBuilderGwtTest extends TestCase {
    
      private FakeTicker fakeTicker;
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CollectCollectors.java

          this.mergeFunction = mergeFunction;
        }
    
        void put(K key, V value) {
          if (map == null) {
            map = new EnumMap<>(singletonMap(key, value));
          } else {
            map.merge(key, value, mergeFunction);
          }
        }
    
        EnumMapAccumulator<K, V> combine(EnumMapAccumulator<K, V> other) {
          if (this.map == null) {
            return other;
          } else if (other.map == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        }
        try {
          unmod.compute(4, (k, v) -> v);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.merge(4, "four", (k, v) -> v);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.clear();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    import junit.framework.TestCase;
    
    /**
     * Test suite for {@link CacheBuilder}. TODO(cpovirk): merge into CacheBuilderTest?
     *
     * @author Jon Donovan
     */
    @GwtCompatible
    public class CacheBuilderGwtTest extends TestCase {
    
      private FakeTicker fakeTicker;
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ArrayTable.java

        checkArgument(columnIndex != null, "Column %s not in %s", columnKey, columnList);
        return set(rowIndex, columnIndex, value);
      }
    
      /*
       * TODO(jlevy): Consider creating a merge() method, similar to putAll() but
       * copying non-null values only.
       */
    
      /**
       * {@inheritDoc}
       *
       * <p>If {@code table} is an {@code ArrayTable}, its null values will be stored in this table,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final V merge(
          K key, V value, BiFunction<? super V, ? super V, ? extends @Nullable V> function) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ArrayTable.java

        checkArgument(columnIndex != null, "Column %s not in %s", columnKey, columnList);
        return set(rowIndex, columnIndex, value);
      }
    
      /*
       * TODO(jlevy): Consider creating a merge() method, similar to putAll() but
       * copying non-null values only.
       */
    
      /**
       * {@inheritDoc}
       *
       * <p>If {@code table} is an {@code ArrayTable}, its null values will be stored in this table,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

        checkNotNull(key);
        checkNotNull(function);
        return compute(key, (k, oldValue) -> (oldValue == null) ? null : function.apply(k, oldValue));
      }
    
      @Override
      @CheckForNull
      public V merge(
          K key, V newValue, BiFunction<? super V, ? super V, ? extends @Nullable V> function) {
        checkNotNull(key);
        checkNotNull(newValue);
        checkNotNull(function);
        return compute(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

       * `new TypeParameter<@Nullable T>() {}` and have it act as a plain `TypeParameter<T>`, but
       * hopefully no one would do that, anyway. See also the comment on TypeParameter itself.
       *
       * TODO(cpovirk): Elaborate on this / merge with other comment?
       */
      public final <X> TypeToken<T> where(TypeParameter<X> typeParam, TypeToken<X> typeArg) {
        TypeResolver resolver =
            new TypeResolver()
                .where(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Iterators.java

        checkNotNull(iterators, "iterators");
        checkNotNull(comparator, "comparator");
    
        return new MergingIterator<>(iterators, comparator);
      }
    
      /**
       * An iterator that performs a lazy N-way merge, calculating the next value each time the iterator
       * is polled. This amortizes the sorting cost over the iteration and requires less memory than
       * sorting all elements at once.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
Back to top