Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for removeFirst (0.06 sec)

  1. 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)
  2. 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)
  3. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                this.logger = logger;
            }
    
            public ModelInterpolationException run() {
                while (!interpolationTargets.isEmpty()) {
                    Object obj = interpolationTargets.removeFirst();
    
                    try {
                        traverseObjectWithParents(obj.getClass(), obj);
                    } catch (ModelInterpolationException e) {
                        return e;
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ListsTest.java

                    CollectionSize.SEVERAL,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        final Function<String, String> removeFirst = new RemoveFirstFunction();
    
        suite.addTest(
            ListTestSuiteBuilder.using(
                    new TestStringListGenerator() {
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ListsTest.java

                    CollectionSize.SEVERAL,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        final Function<String, String> removeFirst = new RemoveFirstFunction();
    
        suite.addTest(
            ListTestSuiteBuilder.using(
                    new TestStringListGenerator() {
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        return poll();
      }
    
      /**
       * Removes and returns the least element of this queue.
       *
       * @throws NoSuchElementException if the queue is empty
       */
      @CanIgnoreReturnValue
      public E removeFirst() {
        return remove();
      }
    
      /**
       * Retrieves, but does not remove, the least element of this queue, or returns {@code null} if the
       * queue is empty.
       */
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

        public boolean offerLast(E e) {
          synchronized (mutex) {
            return delegate().offerLast(e);
          }
        }
    
        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Synchronized.java

        public boolean offerLast(E e) {
          synchronized (mutex) {
            return delegate().offerLast(e);
          }
        }
    
        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        return poll();
      }
    
      /**
       * Removes and returns the least element of this queue.
       *
       * @throws NoSuchElementException if the queue is empty
       */
      @CanIgnoreReturnValue
      public E removeFirst() {
        return remove();
      }
    
      /**
       * Retrieves, but does not remove, the least element of this queue, or returns {@code null} if the
       * queue is empty.
       */
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

          while (topMetaIterator == null || !topMetaIterator.hasNext()) {
            if (metaIterators != null && !metaIterators.isEmpty()) {
              topMetaIterator = metaIterators.removeFirst();
            } else {
              return null;
            }
          }
          return topMetaIterator;
        }
    
        @Override
        public boolean hasNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top