- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for Potter (0.18 sec)
-
guava/src/com/google/common/collect/ImmutableSet.java
final SetBuilderImpl<E> combine(SetBuilderImpl<E> other) { SetBuilderImpl<E> result = this; for (int i = 0; i < other.distinct; i++) { /* * requireNonNull is safe because we ensure that the first `distinct` elements have been * populated. */ result = result.add(requireNonNull(other.dedupedElements[i])); } return result; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 35.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
} @CanIgnoreReturnValue Builder<K, V> combine(Builder<K, V> other) { checkNotNull(other); ensureCapacity(this.size + other.size); System.arraycopy( other.alternatingKeysAndValues, 0, this.alternatingKeysAndValues, this.size * 2, other.size * 2); this.size += other.size; return this; }
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/src/com/google/common/util/concurrent/AbstractFuture.java
* with two implementations, one that contains causeless Cancellation instances and * the other of which creates new Cancellation instances each time it's called? Yet * another alternative is to fill in a non-null value for each of the fields no matter * what and to just not use it if !GENERATE_CANCELLATION_CAUSES. */ : requireNonNull(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
} /** * Not supported. Use {@link #naturalOrder}, which offers better type-safety, instead. This method * exists only to hide {@link ImmutableMultiset#builder} from consumers of {@code * ImmutableSortedMultiset}. * * @throws UnsupportedOperationException always * @deprecated Use {@link ImmutableSortedMultiset#naturalOrder}, which offers better type-safety. */ @DoNotCall("Use naturalOrder.") @Deprecated
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 29.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
public final <T extends @Nullable Object> T[] toArray(T[] other) { checkNotNull(other); int size = size(); if (other.length < size) { Object[] internal = internalArray(); if (internal != null) { return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other); } other = ObjectArrays.newArray(other, size); } else if (other.length > size) { other[size] = null; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 18.7K bytes - Viewed (1) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
public final <T extends @Nullable Object> T[] toArray(T[] other) { checkNotNull(other); int size = size(); if (other.length < size) { Object[] internal = internalArray(); if (internal != null) { return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other); } other = ObjectArrays.newArray(other, size); } else if (other.length > size) { other[size] = null; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 21.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
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/ImmutableList.java
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}. */ @Override
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) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
public void testPuttingTheSameKeyTwiceThrowsOnBuild() { Builder<String, Integer> builder = new Builder<String, Integer>() .put("one", 1) .put("one", 1); // throwing on this line might be better but it's too late to change try { builder.buildOrThrow(); fail(); } catch (IllegalArgumentException expected) { } } public void testBuildKeepingLast_allowsOverwrite() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 14:39:16 GMT 2024 - 37.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
} if (object instanceof MapDifference) { MapDifference<?, ?> other = (MapDifference<?, ?>) object; return entriesOnlyOnLeft().equals(other.entriesOnlyOnLeft()) && entriesOnlyOnRight().equals(other.entriesOnlyOnRight()) && entriesInCommon().equals(other.entriesInCommon()) && entriesDiffering().equals(other.entriesDiffering()); } return false; } @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 159.6K bytes - Viewed (0)