- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for Merge (0.14 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) -
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) -
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) -
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) -
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) -
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)