Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for merge (0.2 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-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    import java.util.concurrent.Future;
    import java.util.concurrent.FutureTask;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    // TODO(cpovirk): Should this be merged into UninterruptiblesTest?
    /**
     * Unit test for {@link Uninterruptibles#getUninterruptibly}
     *
     * @author Kevin Bourrillion
     * @author Chris Povirk
     */
    public class UninterruptibleFutureTest extends TestCase {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

        if (iterable instanceof Collection) {
          return ((Collection<?>) iterable).isEmpty();
        }
        return !iterable.iterator().hasNext();
      }
    
      /**
       * Returns an iterable over the merged contents of all given {@code iterables}. Equivalent entries
       * will not be de-duplicated.
       *
       * <p>Callers must ensure that the source {@code iterables} are in non-descending order as this
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * keys and values are the result of applying the provided mapping functions to the input
       * elements.
       *
       * <p>If the mapped keys contain duplicates (according to the comparator), the values are merged
       * using the specified merging function. Entries will appear in the encounter order of the first
       * occurrence of the key.
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top