Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Stack (0.15 sec)

  1. guava-testlib/src/com/google/common/testing/CollectorTester.java

            }
            return pop(stack);
          }
    
          <E extends @Nullable Object> void push(List<E> stack, E value) {
            stack.add(value);
          }
    
          <E extends @Nullable Object> E pop(List<E> stack) {
            return stack.remove(stack.size() - 1);
          }
        };
    
        abstract <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        // TODO: verify contents afterward
        // TODO: something shiny and new instead of Stack
        // TODO: test whether null is supported (create a Feature)
        /**
         * The elements to be returned by future calls to {@code next()}, with the first at the top of
         * the stack.
         */
        final Stack<E> nextElements = new Stack<>();
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                        }
                      },
                      service);
            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

                        }
                      },
                      service);
            } else if (i % DIRECT_EXECUTIONS_PER_THREAD == DIRECT_EXECUTIONS_PER_THREAD - 1) {
              // When at max depth, record stack trace depth
              lengthChecks.add(
                  serializer.submit(
                      new Callable<Integer>() {
                        @Override
                        public Integer call() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Throwables.java

        }
      }
    
      /**
       * Returns a string containing the result of {@link Throwable#toString() toString()}, followed by
       * the full, recursive stack trace of {@code throwable}. Note that you probably should not be
       * parsing the resulting string; if you need programmatic access to the stack frames, you can call
       * {@link Throwable#getStackTrace()}.
       */
      @GwtIncompatible // java.io.PrintWriter, java.io.StringWriter
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Throwables.java

        }
      }
    
      /**
       * Returns a string containing the result of {@link Throwable#toString() toString()}, followed by
       * the full, recursive stack trace of {@code throwable}. Note that you probably should not be
       * parsing the resulting string; if you need programmatic access to the stack frames, you can call
       * {@link Throwable#getStackTrace()}.
       */
      @GwtIncompatible // java.io.PrintWriter, java.io.StringWriter
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        // TODO: verify contents afterward
        // TODO: something shiny and new instead of Stack
        // TODO: test whether null is supported (create a Feature)
        /**
         * The elements to be returned by future calls to {@code next()}, with the first at the top of
         * the stack.
         */
        final Stack<E> nextElements = new Stack<>();
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Graphs.java

        checkArgument(value > 0, "Not true that %s is positive.", value);
        return value;
      }
    
      /**
       * An enum representing the state of a node during DFS. {@code PENDING} means that the node is on
       * the stack of the DFS, while {@code COMPLETE} means that the node and all its successors have
       * been already explored. Any node that has not been explored will not have a state at all.
       */
      private enum NodeVisitState {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     *
     * <pre>{@code
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
     *   WeakReference<Foo> weakRef = new WeakReference<>(x);
     *   // ... use x ...
     *   x = null;  // Hint to the JIT that x is stack-unreachable
     *   return weakRef;
     * }
     * public void testFooLeak() {
     *   GcFinalization.awaitClear(fooWeakRef());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

      /** Logger to log exceptions caught when running runnables. */
      private static final LazyLogger log = new LazyLogger(ExecutionList.class);
    
      /**
       * The runnable, executor pairs to execute. This acts as a stack threaded through the {@link
       * RunnableExecutorPair#next} field.
       */
      @GuardedBy("this")
      @CheckForNull
      private RunnableExecutorPair runnables;
    
      @GuardedBy("this")
      private boolean executed;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top