- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for new2 (0.01 sec)
-
samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java
} } } }; RequestBody requestBody = RequestBody.create( new File("docs/images/logo-square.png"), MEDIA_TYPE_PNG); Request request = new Request.Builder() .header("Authorization", "Client-ID " + IMGUR_CLIENT_ID) .url("https://api.imgur.com/3/image") .post(new ProgressRequestBody(requestBody, progressListener)) .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 4.2K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// ? extends T assertAssignable(new TypeToken<List<N11>>() {}, new TypeToken<List<? extends N1>>() {}); assertNotAssignable(new TypeToken<List<N1>>() {}, new TypeToken<List<? extends N11>>() {}); assertNotAssignable(new TypeToken<List<Number>>() {}, new TypeToken<List<? extends N11>>() {}); // ? extends Number assertAssignable(new TypeToken<List<N1>>() {}, new TypeToken<List<? extends Number>>() {});
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// ? extends T assertAssignable(new TypeToken<List<N11>>() {}, new TypeToken<List<? extends N1>>() {}); assertNotAssignable(new TypeToken<List<N1>>() {}, new TypeToken<List<? extends N11>>() {}); assertNotAssignable(new TypeToken<List<Number>>() {}, new TypeToken<List<? extends N11>>() {}); // ? extends Number assertAssignable(new TypeToken<List<N1>>() {}, new TypeToken<List<? extends Number>>() {});
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java
return ListTestSuiteBuilder.using( new TestStringListGenerator() { @Override protected List<String> create(String[] elements) { // For this test we trust ArrayList works List<String> list = new ArrayList<>(); Collections.addAll(list, elements); return new AbstractSequentialList<String>() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Sep 04 15:04:05 UTC 2025 - 12K bytes - Viewed (0) -
docs/recipes.md
```java private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 47.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Types.java
return newTypeVariableImpl( declaration, name, (bounds.length == 0) ? new Type[] {Object.class} : bounds); } /** Returns a new {@link WildcardType} with {@code upperBound}. */ @VisibleForTesting static WildcardType subtypeOf(Type upperBound) { return new WildcardTypeImpl(new Type[0], new Type[] {upperBound}); } /** Returns a new {@link WildcardType} with {@code lowerBound}. */ @VisibleForTesting
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.6K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java
public class EventSourceFactoryTest { @StartStop private final MockWebServer server = new MockWebServer(); @Test public void testEventSourceFactory() throws Exception { OkHttpClient client = new OkHttpClient(); EventSource.Factory factory = EventSource.Factory.create(client); server.enqueue( new MockResponse.Builder() .body("data: hello\n\n")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:47:47 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
public void test_generate_parent_directory_not_exists() throws Exception { final File tempDir = new File(System.getProperty("java.io.tmpdir")); final File nonExistentParent = new File(tempDir, "non_existent_" + System.currentTimeMillis()); final File outputFile = new File(nonExistentParent, "output.txt"); try { assertFalse(nonExistentParent.exists());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(invariantContext)); } /** * Returns a new {@code TypeResolver} with type variables in {@code formal} mapping to types in * {@code actual}. * * <p>For example, if {@code formal} is a {@code TypeVariable T}, and {@code actual} is {@code * String.class}, then {@code new TypeResolver().where(formal, actual)} will {@linkplain
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 24.2K bytes - Viewed (0) -
README.md
SequencedCollection<String> reversed = CollectionsUtil.reversed(sequenced); // Specialized collections LruHashMap<String, Object> lruCache = new LruHashMap<>(100); // LRU cache with max 100 entries CaseInsensitiveMap<String> configMap = new CaseInsensitiveMap<>(); ``` ### Resource Management ```java import org.codelibs.core.io.*; // Resource loading and management
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0)