- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 41 for supertypeOf (0.04 sec)
-
android/guava/src/com/google/common/base/Converter.java
* advantage of that for convertAll, as discussed on that method.) * * 2. The supertype of this class could be `Function<@Nullable A, @Nullable B>`, since * Converter.apply (like Converter.convert) is capable of accepting null inputs. However, a * supertype of `Function<A, B>` turns out to be massively more useful to callers in practice: They
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jun 18 21:43:06 UTC 2025 - 22.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ObjectArrays.java
* * @param c the collection for which to return an array of elements * @param array the array in which to place the collection elements * @throws ArrayStoreException if the runtime type of the specified array is not a supertype of * the runtime type of every element in the specified collection */ static <T extends @Nullable Object> T[] toArrayImpl(Collection<?> c, T[] array) { int size = c.size(); if (array.length < size) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:48:28 UTC 2025 - 8.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* @return an array containing all of the elements in this queue * @throws ArrayStoreException if the runtime type of the specified array is not a supertype of * the runtime type of every element in this queue * @throws NullPointerException if the specified array is null */ @CanIgnoreReturnValue // pushed down from class to method @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* @return an array containing all of the elements in this queue * @throws ArrayStoreException if the runtime type of the specified array is not a supertype of * the runtime type of every element in this queue * @throws NullPointerException if the specified array is null */ @CanIgnoreReturnValue @Override public <T> T[] toArray(T[] a) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* <i>type</i> offering meaningful behavioral guarantees. This is substantially different from the * case of (say) {@link HashSet}, which is an <i>implementation</i>, with semantics that were * largely defined by its supertype. * * <p>For field types and method return types, you should generally use the immutable type (such as * {@link ImmutableList}) instead of the general collection interface type (such as {@link List}).
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; import java.util.concurrent.locks.LockSupport; import org.jspecify.annotations.Nullable; import sun.misc.Unsafe; /** Supertype of {@link AbstractFuture} that contains platform-specific functionality. */ // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, || @SuppressWarnings("ShortCircuitBoolean") @GwtCompatibleRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* that use {@code comparator} to determine the least and greatest elements. */ /* * TODO(cpovirk): Change to Comparator<? super B> to permit Comparator<@Nullable ...> and * Comparator<SupertypeOfB>? What we have here matches the immutable collections, but those also * expose a public Builder constructor that accepts "? super." So maybe we should do *that* * instead. */Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 33.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractFutureState.java
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; import java.util.concurrent.locks.LockSupport; import org.jspecify.annotations.Nullable; import sun.misc.Unsafe; /** Supertype of {@link AbstractFuture} that contains platform-specific functionality. */ // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, || @SuppressWarnings("ShortCircuitBoolean") @GwtCompatibleRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 34.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
Arrays.fill(nextInInsertionOrder, 0, size, ABSENT); size = 0; firstInInsertionOrder = ENDPOINT; lastInInsertionOrder = ENDPOINT; modCount++; } /** Shared supertype of keySet, values, entrySet, and inverse.entrySet. */ private abstract static class View< K extends @Nullable Object, V extends @Nullable Object, T extends @Nullable Object> extends AbstractSet<T> {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 16 14:46:34 UTC 2025 - 37.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
// test without that cast to verify that using the raw Comparable works outside J2KT. @J2ktIncompatible // J2KT's translation of raw Comparable is not a supertype of Int translation public void testCreation_expectedSize() { MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.expectedSize(8).create(); assertEquals(8, queue.capacity()); checkUnbounded(queue);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 36.1K bytes - Viewed (0)