- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for Merge (0.15 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
public void testAbsent() { assertEquals( "Map.merge(absent, value, function) should return value", v3(), getMap() .merge( k3(), v3(), (oldV, newV) -> { throw new AssertionFailedError( "Should not call merge function if key was absent"); })); expectAdded(e3()); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/CollectorTester.java
for (T input : inputs) { collector.accumulator().accept(accum, input); } return accum; } }, /** Get one accumulator for each element and merge the accumulators left-to-right. */ MERGE_LEFT_ASSOCIATIVE { @Override final <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object> A result(Collector<T, A, R> collector, Iterable<T> inputs) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TableCollectors.java
if (oldCell == null) { MutableCell<R, C, V> cell = new MutableCell<>(row, column, value); insertionOrder.add(cell); table.put(row, column, cell); } else { oldCell.merge(value, merger); } } ImmutableTableCollectorState<R, C, V> combine( ImmutableTableCollectorState<R, C, V> other, BinaryOperator<V> merger) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sat Mar 09 00:21:17 GMT 2024 - 7.7K bytes - Viewed (0) -
CONTRIBUTING.md
#### Merging pull requests #### Due to Guava's nature as a subset of Google's internal codebase which is automatically synced to the public GitHub repository, we are unable to merge pull requests directly into the master branch. Instead, once a pull request is ready for merging, we'll make the appropriate changes in the internal codebase
Plain Text - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Nov 17 18:47:47 GMT 2023 - 3.7K bytes - Viewed (0) -
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) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 17:02:53 GMT 2023 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeRangeMapTest.java
mergeModel(model, range3, 3, Integer::sum); RangeMap<Integer, Integer> test = TreeRangeMap.create(); test.merge(range1, 1, Integer::sum); test.merge(range2, 2, Integer::sum); test.merge(range3, 3, Integer::sum); verify(model, test); } } } } public void testSubRangeMapExhaustive() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 33.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableRangeMap.java
* * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public final void merge( Range<K> range, @CheckForNull V value, BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction) { throw new UnsupportedOperationException(); } @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 14.7K bytes - Viewed (0) -
android/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 :)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Oct 06 17:11:11 GMT 2023 - 12.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TableCollectorsTest.java
immutableCell("two", "dos", 2), immutableCell("three", "tres", 3)); } public void testToTableNullMerge() { // TODO github.com/google/guava/issues/6824 - the null merge feature is not compatible with the // current nullness annotation of the mergeFunction parameter. Work around with casts. BinaryOperator<@Nullable Integer> mergeFunction = (v1, v2) -> null;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Mar 05 16:03:18 GMT 2024 - 11.7K bytes - Viewed (0) -
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) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:21:40 GMT 2024 - 17.2K bytes - Viewed (0)