Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for addLast (0.09 sec)

  1. guava/src/com/google/common/collect/TreeTraverser.java

          this.stack = new ArrayDeque<>();
          stack.addLast(expand(root));
        }
    
        @Override
        @CheckForNull
        protected T computeNext() {
          while (!stack.isEmpty()) {
            PostOrderNode<T> top = stack.getLast();
            if (top.childIterator.hasNext()) {
              T child = top.childIterator.next();
              stack.addLast(expand(child));
            } else {
              stack.removeLast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

            if (children != null) {
                for (String v : children) {
                    DfsState state = stateMap.putIfAbsent(v, DfsState.VISITING);
                    if (state == null) {
                        cycle.addLast(v);
                        List<String> ret = visitCycle(graph, graph.get(v), stateMap, cycle);
                        if (ret != null) {
                            return ret;
                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

            for (Vertex v : children) {
                DfsState state = stateMap.putIfAbsent(v, DfsState.VISITING);
                if (state == null) {
                    cycle.addLast(v.label);
                    List<String> ret = visitCycle(v.children, stateMap, cycle);
                    if (ret != null) {
                        return ret;
                    }
                    cycle.removeLast();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Streams.java

            if (state.set) {
              return java.util.Optional.of(state.get());
            }
            // fall back to the last split
            continue;
          }
          splits.addLast(prefix);
          splits.addLast(spliterator);
        }
        return java.util.Optional.empty();
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalInt#empty} if the stream is
       * empty.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Streams.java

            if (state.set) {
              return java.util.Optional.of(state.get());
            }
            // fall back to the last split
            continue;
          }
          splits.addLast(prefix);
          splits.addLast(spliterator);
        }
        return java.util.Optional.empty();
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalInt#empty} if the stream is
       * empty.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

                            lessSpecific = true;
                            break;
    
                        default:
                    }
                }
    
                if (!lessSpecific) {
                    maximals.addLast(app);
                }
            }
    
            if (maximals.size() > 1) {
                // We have more than one maximally specific method
                throw new AmbiguousException();
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    if (phase != null) {
                        Deque<String> phases = getLifecycles(project);
                        if (!Objects.equals(phase, phases.peekLast())) {
                            phases.addLast(phase);
                            if ("clean".equals(phase)) {
                                cleanProjectLocalRepository(project);
                            }
                        }
                    }
                    break;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Synchronized.java

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

        @Override
        public void addFirst(E e) {
          synchronized (mutex) {
            delegate().addFirst(e);
          }
        }
    
        @Override
        public void addLast(E e) {
          synchronized (mutex) {
            delegate().addLast(e);
          }
        }
    
        @Override
        public boolean offerFirst(E e) {
          synchronized (mutex) {
            return delegate().offerFirst(e);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetOperationsTest.java

    @ElementTypesAreNonnullByDefault
    public class SetOperationsTest extends TestCase {
      @J2ktIncompatible
      @GwtIncompatible // suite
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top