Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for removeLast (0.21 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/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
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/misc/DisposableUtil.java

        }
    
        /**
         * 登録済みのリソースを全て破棄します。
         */
        public static synchronized void dispose() {
            while (!disposables.isEmpty()) {
                final Disposable disposable = disposables.removeLast();
                try {
                    disposable.dispose();
                } catch (final Throwable t) {
                    t.printStackTrace(); // must not use Logger.
                }
            }
            disposables.clear();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  3. android/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;
        }
      }
    
      /**
    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)
  4. 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
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveLast() throws Exception {
            list.addLast("1");
            list.addLast("2");
            list.removeLast();
            assertThat(list.getLast(), is("1"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAddFirst() throws Exception {
            list.addFirst("1");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/SLinkedList.java

            final E first = header.next.element;
            header.next.remove();
            return first;
        }
    
        /**
         * 最後の要素を削除します。
         *
         * @return 最後の要素
         */
        public E removeLast() {
            if (isEmpty()) {
                throw new NoSuchElementException();
            }
            final E last = header.previous.element;
            header.previous.remove();
            return last;
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            private inline fun withElement(element: FirElement, block: () -> Unit) {
                stack.addLast(element)
                try {
                    block()
                } finally {
                    stack.removeLast()
                }
            }
        }
    
        private inner class FirElementCollector : FirDefaultVisitorVoid() {
            val hasJumps: Boolean
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  9. 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();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterators.java

              if (topConcat.metaIterators != null) {
                while (!topConcat.metaIterators.isEmpty()) {
                  this.metaIterators.addFirst(topConcat.metaIterators.removeLast());
                }
              }
              this.topMetaIterator = topConcat.topMetaIterator;
            }
          }
          return true;
        }
    
        @Override
        @ParametricNullness
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top