Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for removeFirst (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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