- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 612 for Khan (0.24 sec)
-
guava/src/com/google/common/collect/Lists.java
@GwtIncompatible // CopyOnWriteArrayList public static <E extends @Nullable Object> CopyOnWriteArrayList<E> newCopyOnWriteArrayList( Iterable<? extends E> elements) { // We copy elements to an ArrayList first, rather than incurring the // quadratic cost of adding them to the COWAL directly. Collection<? extends E> elementsCollection = (elements instanceof Collection) ? (Collection<? extends E>) elements
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 42.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java
import java.util.Map; import java.util.Map.Entry; import org.jspecify.annotations.NullMarked; /** * Generators of different types of map and related collections, such as keys, entries and values. * * @author Hayward Chan */ @GwtCompatible @NullMarked public class MapGenerators { public static class ImmutableMapGenerator extends TestStringMapGenerator { @OverrideRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 8.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
multiset2.add("equalIn1"); multiset2.add("fewerIn1", 3); multiset2.add("onlyIn2", 2); for (int i = 0; i < elements.length; i++) { // add 1 more copy of each element to multiset1 than multiset2 multiset1.add(elements[i], i + 2); multiset2.add(elements[i], i + 1); } return difference(multiset1, multiset2); } }; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.7K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
}); assertTrue(map.isEmpty()); } // ---------------------------------------------------------------- // Test that interrupts result in RuntimeException, not InterruptedException. // Trickier than it looks, because runFinalization swallows interrupts. // ---------------------------------------------------------------- class Interruptenator extends Thread { final AtomicBoolean shutdown;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
* interned, thus preventing these instances from being garbage-collected. If this retention is * acceptable, this implementation may perform better than {@link #newWeakInterner}. */ public static <E> Interner<E> newStrongInterner() { return newBuilder().strong().build(); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Platform.java
import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.jspecify.annotations.Nullable; /** * Methods factored out so that they can be emulated differently in GWT. * * @author Hayward Chan */ @GwtCompatible final class Platform { /** Returns the platform preferred implementation of a map based on a hash table. */ static <K extends @Nullable Object, V extends @Nullable Object>Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
@Test @DisplayName("Should throw exception when stripping more than consumed") void testStripMoreThanConsumed() { setupReferralDataWithPathConsumed(5); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> referralData.stripPathConsumed(10)); assertEquals("Stripping more than consumed", exception.getMessage()); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt
withLock { finished = this.finished flowControlError = remainingByteCount + readBuffer.size > maxByteCount } // If the peer sends more data than we can handle, discard it and close the connection. if (flowControlError) { source.skip(remainingByteCount) closeLater(ErrorCode.FLOW_CONTROL_ERROR) return }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jul 07 18:57:05 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
assertEquals( "Modifying the builder should not have changed any already built sets", 216, webSafeColors.size()); assertEquals("the new array should be one bigger than webSafeColors", 217, addedColor.size()); Integer[] appendColorArray = addedColor.toArray(new Integer[addedColor.size()]); assertEquals(0x00BFFF, (int) appendColorArray[216]); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Joiner.java
* and Joiner.on(...).useForNull(...) both declare the same return type: plain Joiner. To ensure * that users *can* pass null arguments to Joiner, we annotate it as if it always tolerates null * inputs, rather than as if it never tolerates them. * * We rely on checkers to implement special cases to catch dangerous calls to join(), etc. based * on what they know about the particular Joiner instances the calls are performed on.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 21K bytes - Viewed (0)