Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for isInterface (0.05 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

    import okhttp3.sse.internal.RealEventSource
    
    interface EventSource {
      /** Returns the original request that initiated this event source. */
      fun request(): Request
    
      /**
       * Immediately and violently release resources held by this event source. This does nothing if
       * the event source has already been closed or canceled.
       */
      fun cancel()
    
      fun interface Factory {
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. okhttp-sse/api/okhttp-sse.api

    public abstract interface class okhttp3/sse/EventSource {
    	public static final field Companion Lokhttp3/sse/EventSource$Companion;
    	public abstract fun cancel ()V
    	public static fun enqueue (Lokhttp3/Call;Lokhttp3/sse/EventSourceListener;)Lokhttp3/sse/EventSource;
    	public static fun process (Lokhttp3/Response;Lokhttp3/sse/EventSourceListener;)V
    	public abstract fun request ()Lokhttp3/Request;
    }
    
    public final class okhttp3/sse/EventSource$Companion {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

              if (!completed) {
                completed = true;
                progressListener.update(totalBytesWritten, contentLength(), completed);
              }
            }
          };
        }
      }
    
      interface ProgressListener {
        void update(long bytesWritten, long contentLength, boolean done);
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

                Map.class, new TypeToken<Map<Integer, String>>() {}.getType()),
            interfaceMap);
      }
    
      private interface Interface1 {}
    
      private interface Interface2 {}
    
      private interface Interface3<T> extends Iterable<T> {}
    
      private interface Interface12 extends Interface1, Interface2 {}
    
      private static class Class1 implements Interface1 {}
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

                Map.class, new TypeToken<Map<Integer, String>>() {}.getType()),
            interfaceMap);
      }
    
      private interface Interface1 {}
    
      private interface Interface2 {}
    
      private interface Interface3<T> extends Iterable<T> {}
    
      private interface Interface12 extends Interface1, Interface2 {}
    
      private static class Class1 implements Interface1 {}
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/Types.java

       *
       * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable}
       * interface, whose return type {@code AnnotatedType[]} is also new in Java 8. As of 2025, Android
       * has not added {@link AnnotatedType}. That means that we cannot implement that interface in
       * source code in a way that will compile on both Java and Android. If we include the {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

                }
              }
            }
    
          val bufferedSink = forwardingSink.buffer()
          delegate.writeTo(bufferedSink)
          bufferedSink.flush()
        }
      }
    
      fun interface ProgressListener {
        fun update(
          bytesWritten: Long,
          contentLength: Long,
          done: Boolean,
        )
      }
    }
    
    fun main() {
      UploadProgress().run()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

    import okio.Options
    
    internal class ServerSentEventReader(
      private val source: BufferedSource,
      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Types.java

       *
       * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable}
       * interface, whose return type {@code AnnotatedType[]} is also new in Java 8. As of 2025, Android
       * has not added {@link AnnotatedType}. That means that we cannot implement that interface in
       * source code in a way that will compile on both Java and Android. If we include the {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          val queue = readyQueues[i]
          queue.cancelAllAndDecide()
          if (queue.futureTasks.isEmpty()) {
            readyQueues.removeAt(i)
          }
        }
      }
    
      interface Backend {
        fun nanoTime(): Long
    
        fun coordinatorNotify(taskRunner: TaskRunner)
    
        fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top