- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for toImmutableList (0.2 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
internal fun Response.headersContentLength(): Long { return headers["Content-Length"]?.toLongOrDefault(-1L) ?: -1L } /** Returns an immutable copy of this. */ internal fun <T> List<T>.toImmutableList(): List<T> { return Collections.unmodifiableList(toMutableList()) } /** Returns an immutable list containing [elements]. */ @SafeVarargs internal fun <T> immutableListOf(vararg elements: T): List<T> {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 10.5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
import okhttp3.internal.http2.Http2Stream import okhttp3.internal.immutableListOf import okhttp3.internal.platform.Platform import okhttp3.internal.threadFactory import okhttp3.internal.toImmutableList import okhttp3.internal.ws.RealWebSocket import okhttp3.internal.ws.WebSocketExtensions import okhttp3.internal.ws.WebSocketProtocol import okio.Buffer import okio.BufferedSink import okio.BufferedSource
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
fail("Expected NPE"); } catch (NullPointerException expected) { } } public void testToImmutableList() { CollectorTester.of(ImmutableList.<String>toImmutableList()) .expectCollects(ImmutableList.of("a", "b", "c", "d"), "a", "b", "c", "d"); } // Basic tests @J2ktIncompatible @GwtIncompatible // NullPointerTester
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 23.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());} * </pre> */ @SuppressWarnings("unchecked") @GwtIncompatible // Class.isInstance public static <T> Iterable<T> filter(final Iterable<?> unfiltered, final Class<T> desiredType) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 42.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());} * </pre> */ @SuppressWarnings("unchecked") @GwtIncompatible // Class.isInstance public static <T> Iterable<T> filter(final Iterable<?> unfiltered, final Class<T> desiredType) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 42.8K bytes - Viewed (0)