Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for merge (0.04 sec)

  1. 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,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeRangeMap.java

        // lower bound in the merge range is entirely contained by the merge range.
        Set<Entry<Cut<K>, RangeMapEntry<K, V>>> entriesInMergeRange =
            entriesByLowerBound.subMap(range.lowerBound, range.upperBound).entrySet();
    
        // Create entries mapping any unmapped ranges in the merge range to the specified value.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/TempFileCreator.java

           * running under Jelly Bean or higher. But it seems safest to check.
           */
          if (version < jellyBean) {
            return new ThrowingCreator();
          }
    
          // Don't merge these catch() blocks, let alone use ReflectiveOperationException directly:
          // b/65343391
        } catch (NoSuchFieldException e) {
          // The JELLY_BEAN field doesn't exist because we're running on a version before Jelly Bean :)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/StatsAccumulator.java

       *
       * @since 28.2
       */
      public void addAll(StatsAccumulator values) {
        if (values.count() == 0) {
          return;
        }
        merge(values.count(), values.mean(), values.sumOfSquaresOfDeltas(), values.min(), values.max());
      }
    
      private void merge(
          long otherCount,
          double otherMean,
          double otherSumOfSquaresOfDeltas,
          double otherMin,
          double otherMax) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

    import java.util.concurrent.Callable;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. android/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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. 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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

       * and values are the result of applying the provided mapping functions to the input elements.
       *
       * <p>If the mapped keys contain duplicates (according to {@link Object#equals(Object)}), the
       * values are merged using the specified merging function. If the merging function returns {@code
       * null}, then the collector removes the value that has been computed for the key thus far (though
       * future occurrences of the key would reinsert it).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/TreeBasedTable.java

        Iterator<C> merged =
            mergeSorted(
                transform(backingMap.values(), (Map<C, V> input) -> input.keySet().iterator()),
                comparator);
    
        return new AbstractIterator<C>() {
          @CheckForNull C lastValue;
    
          @Override
          @CheckForNull
          protected C computeNext() {
            while (merged.hasNext()) {
              C next = merged.next();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableRangeSet.java

         * and will be merged, but overlapping ranges will cause an exception when {@link #build()} is
         * called.
         */
        @CanIgnoreReturnValue
        public Builder<C> addAll(RangeSet<C> ranges) {
          return addAll(ranges.asRanges());
        }
    
        /**
         * Add all of the specified ranges to this builder. Adjacent ranges are permitted and will be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top