- Sort Score
- Result 10 results
- Languages All
Results 681 - 690 of 1,560 for RESULT (0.21 sec)
-
samples/static-server/src/main/java/okhttp3/sample/SampleServer.java
.setBody(fileToBytes(file)) .addHeader("content-type: " + contentType(path)); } private Buffer fileToBytes(File file) throws IOException { Buffer result = new Buffer(); result.writeAll(Okio.source(file)); return result; } private String contentType(String path) { if (path.endsWith(".png")) return "image/png"; if (path.endsWith(".jpg")) return "image/jpeg";
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Jan 02 02:50:44 UTC 2019 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Predicate.java
* officially discouraged. * * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault public interface Predicate<T extends @Nullable Object> { /** * Returns the result of applying this predicate to {@code input} (Java 8+ users, see notes in the * class documentation above). This method is <i>generally expected</i>, but not absolutely * required, to have the following properties: *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
if (aspect2 != other.aspect2) { return false; } return true; } @Override public int hashCode() { int result = 17; result = 37 * result + aspect1; result = 37 * result + aspect2; return result; } } /** Test class with invalid hashCode method. */ private static class InvalidHashCodeObject { private int aspect1;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 12.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java
/** * Override to return a chaining listenableFuture that returns the result of getSuccessfulResult() * when inputFuture returns VALID_INPUT_DATA, and sets the exception to EXCEPTION in all other * cases. */ protected abstract ListenableFuture<T> buildChainingFuture(ListenableFuture<Integer> inputFuture); /** * Override to return the result when VALID_INPUT_DATA is passed in to the chaining * listenableFuture */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 3.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
): Relay { val randomAccessFile = RandomAccessFile(file, "rw") val result = Relay(randomAccessFile, upstream, 0L, metadata, bufferMaxSize) // Write a dirty header. That way if we crash we won't attempt to recover this. randomAccessFile.setLength(0L) result.writeHeader(PREFIX_DIRTY, -1L, -1L) return result } /** * Creates a relay that reads a recorded stream from [file].
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multisets.java
private Multisets() {} /** * Returns a {@code Collector} that accumulates elements into a multiset created via the specified * {@code Supplier}, whose elements are the result of applying {@code elementFunction} to the * inputs, with counts equal to the result of applying {@code countFunction} to the inputs. * Elements are added in encounter order. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
private Multisets() {} /** * Returns a {@code Collector} that accumulates elements into a multiset created via the specified * {@code Supplier}, whose elements are the result of applying {@code elementFunction} to the * inputs, with counts equal to the result of applying {@code countFunction} to the inputs. * Elements are added in encounter order. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0) -
guava/src/com/google/common/escape/CharEscaperBuilder.java
* * @return a "sparse" array that holds the replacement mappings. */ public char[] @Nullable [] toArray() { char[][] result = new char[max + 1][]; for (Entry<Character, String> entry : map.entrySet()) { result[entry.getKey()] = entry.getValue().toCharArray(); } return result; } /** * Convert this builder into a char escaper which is just a decorator around the underlying array
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java
public static <K, V> SortedMapTestSuiteBuilder<K, V> using( TestSortedMapGenerator<K, V> generator) { SortedMapTestSuiteBuilder<K, V> result = new SortedMapTestSuiteBuilder<>(); result.usingGenerator(generator); return result; } @SuppressWarnings("rawtypes") // class literals @Override protected List<Class<? extends AbstractTester>> getTesters() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt
toDer(writer, v) } } override fun decode(reader: DerReader): List<T> { val result = mutableListOf<T>() while (reader.hasNext()) { result += fromDer(reader) } return result } } return BasicDerAdapter(name, tagClass, tag, codec) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0)