Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for ArrayDeque (0.27 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import java.util.ArrayDeque
    import java.util.Deque
    
    class RecordingCookieJar : CookieJar {
      private val requestCookies: Deque<List<Cookie>> = ArrayDeque()
      private val responseCookies: Deque<List<Cookie>> = ArrayDeque()
    
      fun enqueueRequestCookies(vararg cookies: Cookie) {
        requestCookies.add(cookies.toList())
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/LineReader.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.IOException;
    import java.io.Reader;
    import java.nio.CharBuffer;
    import java.util.ArrayDeque;
    import java.util.Queue;
    import javax.annotation.CheckForNull;
    
    /**
     * A class for reading lines of text. Provides the same functionality as {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

        return new ArrayBlockingQueue<>(capacity);
      }
    
      // ArrayDeque
    
      /**
       * Creates an empty {@code ArrayDeque}.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque() {
        return new ArrayDeque<>();
      }
    
      /**
       * Creates an {@code ArrayDeque} containing the elements of the specified iterable, in the order
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeTraverser.java

          this.childIterator = checkNotNull(childIterator);
        }
      }
    
      private final class PostOrderIterator extends AbstractIterator<T> {
        private final ArrayDeque<PostOrderNode<T>> stack;
    
        PostOrderIterator(T root) {
          this.stack = new ArrayDeque<>();
          stack.addLast(expand(root));
        }
    
        @Override
        @CheckForNull
        protected T computeNext() {
          while (!stack.isEmpty()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        }
    
        /**
         * {@link ArrayDeque}の新しいインスタンスを作成して返します。
         *
         * @param <E>
         *            {@link ArrayDeque}の要素型
         * @return {@link ArrayDeque}の新しいインスタンス
         * @see ArrayDeque#ArrayDeque()
         */
        public static <E> ArrayDeque<E> newArrayDeque() {
            return new ArrayDeque<>();
        }
    
        /**
         * {@link ArrayDeque}の新しいインスタンスを作成して返します。
         *
         * @param <E>
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 53.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/Traverser.java

              return endOfData();
            }
          };
        }
    
        final Iterator<N> postOrder(Iterator<? extends N> startNodes) {
          Deque<N> ancestorStack = new ArrayDeque<>();
          Deque<Iterator<? extends N>> horizon = new ArrayDeque<>();
          horizon.add(startNodes);
          return new AbstractIterator<N>() {
            @Override
            @CheckForNull
            protected N computeNext() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

      private val readyAsyncCalls = ArrayDeque<AsyncCall>()
    
      /** Running asynchronous calls. Includes canceled calls that haven't finished yet. */
      private val runningAsyncCalls = ArrayDeque<AsyncCall>()
    
      /** Running synchronous calls. Includes canceled calls that haven't finished yet. */
      private val runningSyncCalls = ArrayDeque<RealCall>()
    
      constructor(executorService: ExecutorService) : this() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EvictingQueue.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.Serializable;
    import java.util.ArrayDeque;
    import java.util.Collection;
    import java.util.Queue;
    
    /**
     * A non-blocking queue which automatically evicts elements from the head of the queue when
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EvictingQueue.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.io.Serializable;
    import java.util.ArrayDeque;
    import java.util.Collection;
    import java.util.Queue;
    
    /**
     * A non-blocking queue which automatically evicts elements from the head of the queue when
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolDeclarationOverridesProvider.kt

            descriptor: CallableMemberDescriptor,
            collectAllOverrides: Boolean
        ): Collection<CallableMemberDescriptor> {
            val overriddenDescriptors = LinkedHashSet<CallableMemberDescriptor>()
            val queue = ArrayDeque<CallableMemberDescriptor>().apply { addAll(descriptor.overriddenDescriptors) }
    
            while (queue.isNotEmpty()) {
                val current = queue.removeFirst()
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 13 16:31:41 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top