- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 104 for root (0.16 sec)
-
android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
Optional<BinaryNode> root = Optional.absent(); for (int i = 0; i < size; i++) { root = Optional.of(new BinaryNode(rng.nextInt(), root, Optional.<BinaryNode>absent())); } return root; } }, ALL_RIGHT { @Override Optional<BinaryNode> createTree(int size, Random rng) { Optional<BinaryNode> root = Optional.absent();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
@Override long treeAggregate(@CheckForNull AvlNode<?> root) { return (root == null) ? 0 : root.totalCount; } }, DISTINCT { @Override int nodeAggregate(AvlNode<?> node) { return 1; } @Override long treeAggregate(@CheckForNull AvlNode<?> root) { return (root == null) ? 0 : root.distinctElements; } };
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 34.2K bytes - Viewed (0) -
refactorings/TraverserRewrite.java
return Traverser.forTree((N node) -> getChildren(node)).depthFirstPreOrder(root); } } abstract class TreeTraverserPostOrder<N> { @Placeholder abstract Iterable<N> getChildren(N node); @BeforeTemplate Iterable<N> before1(N root) { return TreeTraverser.using((N node) -> getChildren(node)).postOrderTraversal(root); } @BeforeTemplate Iterable<N> before2(N root) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 20 18:51:33 UTC 2020 - 3K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeTraverser.java
} }.accept(root); } }; } UnmodifiableIterator<T> postOrderIterator(T root) { return new PostOrderIterator(root); } private static final class PostOrderNode<T> { final T root; final Iterator<T> childIterator; PostOrderNode(T root, Iterator<T> childIterator) { this.root = checkNotNull(root);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 8.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/Platform.java
*/ @GwtCompatible final class Platform { /** Format the template with args, only supports the placeholder {@code %s}. */ static String format(String template, Object... args) { return String.format(Locale.ROOT, template, args); } /** See {@link ListListIteratorTester} */ static int listListIteratorTesterNumIterations() { return 4; } /** See {@link CollectionIteratorTester} */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Platform.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Aug 04 01:39:13 UTC 2022 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/Platform.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Aug 04 01:39:13 UTC 2022 - 1.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
assertLessThan(STOPPING, TERMINATED); } private static <T extends Comparable<? super T>> void assertLessThan(T a, T b) { if (a.compareTo(b) >= 0) { fail(String.format(Locale.ROOT, "Expected %s to be less than %s", a, b)); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeTraverser.java
@Deprecated public final FluentIterable<T> preOrderTraversal(final T root) { checkNotNull(root); return new FluentIterable<T>() { @Override public UnmodifiableIterator<T> iterator() { return preOrderIterator(root); } }; } UnmodifiableIterator<T> preOrderIterator(T root) { return new PreOrderIterator(root); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
} @Override public void uncaughtException(Thread t, Throwable e) { try { logger .get() .log( SEVERE, String.format(Locale.ROOT, "Caught an exception in %s. Shutting down.", t), e); } catch (Throwable errorInLogging) { // sneaky checked exception // If logging fails, e.g. due to missing memory, at least try to log the
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 2.8K bytes - Viewed (0)