Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for butter (0.05 sec)

  1. guava/src/com/google/common/collect/TopKSelector.java

        T pivotValue = uncheckedCastNullableTToT(buffer[pivotIndex]);
        buffer[pivotIndex] = buffer[right];
    
        int pivotNewIndex = left;
        for (int i = left; i < right; i++) {
          if (comparator.compare(uncheckedCastNullableTToT(buffer[i]), pivotValue) < 0) {
            swap(pivotNewIndex, i);
            pivotNewIndex++;
          }
        }
        buffer[right] = buffer[pivotNewIndex];
        buffer[pivotNewIndex] = pivotValue;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

              .build(),
          )
        val response = call.execute()
        interruptLater(500)
        val responseBody = response.body.byteStream()
        val buffer = ByteArray(1024)
        assertFailsWith<IOException> {
          while (responseBody.read(buffer) != -1) {
          }
        }
        responseBody.close()
      }
    
      @Test
      fun forciblyStopDispatcher() {
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody
    import okhttp3.RequestBody.Companion.asRequestBody
    import okio.Buffer
    import okio.BufferedSink
    import okio.ForwardingSink
    import okio.buffer
    
    class UploadProgress {
      companion object {
        private const val IMGUR_CLIENT_ID = "9199fdef135c122"
        private val MEDIA_TYPE_PNG = "image/png".toMediaType()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.sse.internal
    
    import java.io.IOException
    import okhttp3.internal.toLongOrDefault
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    
    internal class ServerSentEventReader(
      private val source: BufferedSource,
      private val callback: Callback,
    ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. README.md

    - **Switch Expressions** - Optimized implementations using switch expressions for better performance
    - **Sequenced Collections** - Full support for Java 21 sequenced collections API with dedicated utility methods
    - **Performance Focused** - Optimized implementations for better runtime performance with reduced memory allocation
    - **Type Safe** - Comprehensive use of generics and modern Java type system features
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. guava-gwt/pom.xml

                like to get an error. Currently we do, but if we add the extra <inherits> lines, we
                won't.
    
                I have one idea for a better approach, but it's painful, and I haven't tested it: We
                could postprocess Collect.gwt.xml to add <skip> lines for all the files that should be
                covered by testModule.gwt.xml. Maybe I'll try it someday.
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

          BufferedSink bufferedSink = Okio.buffer(sink(sink));
          delegate.writeTo(bufferedSink);
          bufferedSink.flush();
        }
    
        public Sink sink(Sink sink) {
          return new ForwardingSink(sink) {
            private long totalBytesWritten = 0L;
            private boolean completed = false;
    
            @Override
            public void write(Buffer source, long byteCount) throws IOException {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  8. docs/recipes.md

                val forwardingSink = object : ForwardingSink(sink) {
                  private var totalBytesWritten: Long = 0
                  private var completed = false
    
                  override fun write(source: Buffer, byteCount: Long) {
                    super.write(source, byteCount)
                    totalBytesWritten += byteCount
                    progressListener.update(totalBytesWritten, contentLength(), completed)
                  }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeResolver.java

            TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
              Set<Type> combined = new LinkedHashSet<>(asList(upperBounds));
              // Since this is an artificially generated type variable, we don't bother checking
              // subtyping between declared type bound and actual type bound. So it's possible that we
              // may generate something like <capture#1-of ? extends Foo&SubFoo>.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeResolver.java

            TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
              Set<Type> combined = new LinkedHashSet<>(asList(upperBounds));
              // Since this is an artificially generated type variable, we don't bother checking
              // subtyping between declared type bound and actual type bound. So it's possible that we
              // may generate something like <capture#1-of ? extends Foo&SubFoo>.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
Back to top