- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 146 for combine (0.17 sec)
-
android/guava/src/com/google/common/collect/ImmutableMap.java
this.valueComparator = checkNotNull(valueComparator, "valueComparator"); return this; } @CanIgnoreReturnValue Builder<K, V> combine(Builder<K, V> other) { checkNotNull(other); ensureCapacity(this.size + other.size); System.arraycopy( other.alternatingKeysAndValues, 0, this.alternatingKeysAndValues,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
ImmutableSortedSet.Builder<String> zat = ImmutableSortedSet.<String>naturalOrder().add("a", "b", "d", "c"); ImmutableSortedSet<String> sortedSet = zis.combine(zat).build(); assertThat(sortedSet).containsExactly("a", "b", "c", "d").inOrder(); } // TODO(b/172823566): Use mainline testToImmutableSortedSet_customComparator once CollectorTester // is usable to java7.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 45.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
add(elements.next()); } return this; } @CanIgnoreReturnValue @SuppressWarnings("unchecked") // ArrayBasedBuilder stores its elements as Object. Builder<E> combine(Builder<E> other) { if (hashTable != null) { for (int i = 0; i < other.size; ++i) { // requireNonNull is safe because the first `size` elements are non-null.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 22.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Tables.java
* input elements. Cells are inserted into the generated {@code Table} in encounter order. * * <p>If multiple input elements map to the same row and column, the specified merging function is * used to combine the values. Like {@link * java.util.stream.Collectors#toMap(java.util.function.Function, java.util.function.Function, * BinaryOperator, java.util.function.Supplier)}, this Collector throws a {@code
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Mar 04 22:45:41 GMT 2024 - 26.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
this.valueComparator = checkNotNull(valueComparator, "valueComparator"); return this; } @CanIgnoreReturnValue Builder<K, V> combine(Builder<K, V> other) { checkNotNull(other); ensureCapacity(this.size + other.size); System.arraycopy(other.entries, 0, this.entries, this.size, other.size); this.size += other.size;
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) -
android/guava/src/com/google/common/collect/ImmutableList.java
@CanIgnoreReturnValue @Override public Builder<E> addAll(Iterator<? extends E> elements) { super.addAll(elements); return this; } @CanIgnoreReturnValue Builder<E> combine(Builder<E> other) { addAll(other.contents, other.size); return this; } /** * Returns a newly-created {@code ImmutableList} based on the contents of the {@code Builder}. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 27.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/CollectorTester.java
A accum = collector.supplier().get(); for (T input : inputs) { A newAccum = collector.supplier().get(); collector.accumulator().accept(newAccum, input); accum = collector.combiner().apply(accum, newAccum); } return accum; } }, /** Get one accumulator for each element and merge the accumulators right-to-left. */ MERGE_RIGHT_ASSOCIATIVE { @Override
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/reflect/TypeResolver.java
// There is no contract one way or another as long as isSubtypeOf() works as expected. combined.addAll(asList(typeParam.getBounds())); if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound. combined.remove(Object.class); } return super.captureAsTypeVariable(combined.toArray(new Type[0])); } }; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 24.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
Throwable cause = e.getCause(); if (cause == null) { throw e; } if (combineStackTraces) { StackTraceElement[] combined = ObjectArrays.concat(cause.getStackTrace(), e.getStackTrace(), StackTraceElement.class); cause.setStackTrace(combined); } if (cause instanceof Exception) { throw (Exception) cause; } if (cause instanceof Error) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jun 27 14:21:11 GMT 2023 - 9.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
for (Entry<? extends K, ? extends V> entry : entries) { put(entry); } return this; } @CanIgnoreReturnValue Builder<K, V> combine(Builder<K, V> other) { super.combine(other); return this; } @Override public Builder<K, V> orderEntriesByValue(Comparator<? super V> valueComparator) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 16.4K bytes - Viewed (0)