Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for removeFirst (0.08 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexer.java

                if (elementStack.contains(element)) {
                    while (!elementStack.getFirst().equals(element)) {
                        visitor.onEndHtmlElement(elementStack.removeFirst());
                    }
                    elementStack.removeFirst();
                    visitor.onEndHtmlElement(element);
                }
            }
    
            private void unwindTo(Collection<String> ancestors, TokenVisitor visitor) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt

      fun enqueueRequestCookies(vararg cookies: Cookie) {
        requestCookies.add(cookies.toList())
      }
    
      fun takeResponseCookies(): List<Cookie> {
        return responseCookies.removeFirst()
      }
    
      fun assertResponseCookies(vararg cookies: String?) {
        assertThat(takeResponseCookies().map(Cookie::toString)).containsExactly(*cookies)
      }
    
      override fun saveFromResponse(
        url: HttpUrl,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/DocBookBuilder.java

            }
        }
    
        public void push(Element element) {
            stack.getFirst().appendChild(element);
            stack.addFirst(element);
        }
    
        public Element pop() {
            Element element = stack.removeFirst();
            if (emptyPara(element)) {
                element.getParentNode().removeChild(element);
            }
            return element;
        }
    
        private boolean emptyPara(Element element) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public boolean offerLast(E e) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.offerLast(e);
        }
    
        @Override
        public E removeFirst() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeFirst();
        }
    
        @Override
        public E removeLast() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeLast();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingDeque.java

      }
    
      @Override
      public void push(@ParametricNullness E e) {
        delegate().push(e);
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public E removeFirst() {
        return delegate().removeFirst();
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public E removeLast() {
        return delegate().removeLast();
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/DefaultGenerationListener.java

        }
    
        @Override
        public void start(String context) {
            contextStack.addFirst(context);
        }
    
        @Override
        public void finish() {
            contextStack.removeFirst();
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveFirst() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.removeFirst();
            assertThat(list.getFirst(), is("2"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveLast() throws Exception {
            list.addLast("1");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        private final Deque<Runnable> tasks = Queues.newArrayDeque();
    
        @Override
        public void execute(Runnable task) {
          tasks.add(task);
        }
    
        private void runNext() {
          tasks.removeFirst().run();
        }
      }
    
      public void testAsyncReload() throws Exception {
        final AtomicInteger loadCount = new AtomicInteger();
        final AtomicInteger reloadCount = new AtomicInteger();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts

        seen.add(rootVariant)
        queue.addAll(rootDependencies)
    
        while (queue.isNotEmpty()) {
            val dependency = when (val result = queue.removeFirst()) {
                is ResolvedDependencyResult -> result
                is UnresolvedDependencyResult -> throw result.failure
                else -> throw AssertionError("Unknown dependency type: $result")
            }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed May 01 08:59:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

            queue.addAll(ownerClass.getInterfaces());
    
            String overrideSignature = getOverrideSignature();
    
            while (!queue.isEmpty()) {
                ClassMetaData cl = queue.removeFirst();
                if (cl == null) {
                    continue;
                }
                MethodMetaData overriddenMethod = cl.findDeclaredMethod(overrideSignature);
                if (overriddenMethod != null) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
Back to top