Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public E removeFirst() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeFirst();
        }
    
        @Override
        public E removeLast() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeLast();
        }
    
        @Override
        public @Nullable E pollFirst() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.pollFirst();
        }
    
    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/src/com/google/common/collect/TreeTraverser.java

        }
    
        @Override
        public T next() {
          Iterator<T> itr = stack.getLast(); // throws NSEE if empty
          T result = checkNotNull(itr.next());
          if (!itr.hasNext()) {
            stack.removeLast();
          }
          Iterator<T> childItr = children(result).iterator();
          if (childItr.hasNext()) {
            stack.addLast(childItr);
          }
          return result;
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

                        List<String> ret = visitCycle(graph, graph.get(v), stateMap, cycle);
                        if (ret != null) {
                            return ret;
                        }
                        cycle.removeLast();
                        stateMap.put(v, DfsState.VISITED);
                    } else if (state == DfsState.VISITING) {
                        // we are already visiting this vertex, this mean we have a cycle
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

                    cycle.addLast(v.label);
                    List<String> ret = visitCycle(v.children, stateMap, cycle);
                    if (ret != null) {
                        return ret;
                    }
                    cycle.removeLast();
                    stateMap.put(v, DfsState.VISITED);
                } else if (state == DfsState.VISITING) {
                    // we are already visiting this vertex, this mean we have a cycle
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
    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. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
    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

        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
    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

        @Override
        public E removeFirst() {
          synchronized (mutex) {
            return delegate().removeFirst();
          }
        }
    
        @Override
        public E removeLast() {
          synchronized (mutex) {
            return delegate().removeLast();
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
    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. android/guava/src/com/google/common/collect/Streams.java

        Deque<Spliterator<T>> splits = new ArrayDeque<>();
        splits.addLast(stream.spliterator());
    
        while (!splits.isEmpty()) {
          Spliterator<T> spliterator = splits.removeLast();
    
          if (spliterator.getExactSizeIfKnown() == 0) {
            continue; // drop this split
          }
    
          // Many spliterators will have trySplits that are SUBSIZED even if they are not themselves
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Streams.java

        Deque<Spliterator<T>> splits = new ArrayDeque<>();
        splits.addLast(stream.spliterator());
    
        while (!splits.isEmpty()) {
          Spliterator<T> spliterator = splits.removeLast();
    
          if (spliterator.getExactSizeIfKnown() == 0) {
            continue; // drop this split
          }
    
          // Many spliterators will have trySplits that are SUBSIZED even if they are not themselves
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top