Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for top (0.12 sec)

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

        TopKSelector<Integer> top = TopKSelector.least(0);
        for (int i = 0; i < 10; i++) {
          top.offer(i);
        }
        assertThat(top.topK()).isEmpty();
      }
    
      public void testNoElementsOffered() {
        TopKSelector<Integer> top = TopKSelector.least(10);
        assertThat(top.topK()).isEmpty();
      }
    
      public void testOfferedFewerThanK() {
        TopKSelector<Integer> top = TopKSelector.least(10);
        top.offer(3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final ImmutableSet<String> TOP_UNDER_REGISTRY_SUFFIX =
          ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.");
    
      private static final ImmutableSet<String> TOP_PRIVATE_DOMAIN =
          ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.", "foo.blogspot.com");
    
      private static final ImmutableSet<String> UNDER_TOP_UNDER_REGISTRY_SUFFIX =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      private static final ImmutableSet<String> TOP_UNDER_REGISTRY_SUFFIX =
          ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.");
    
      private static final ImmutableSet<String> TOP_PRIVATE_DOMAIN =
          ImmutableSet.of("google.com", "foo.Co.uk", "foo.ca.us.", "foo.blogspot.com");
    
      private static final ImmutableSet<String> UNDER_TOP_UNDER_REGISTRY_SUFFIX =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TopKSelector.java

    import java.util.Iterator;
    import java.util.List;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An accumulator that selects the "top" {@code k} elements added to it, relative to a provided
     * comparator. "Top" can mean the greatest or the lowest elements, specified in the factory used to
     * create the {@code TopKSelector} instance.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

        TopKSelector<Integer> top = TopKSelector.least(0);
        for (int i = 0; i < 10; i++) {
          top.offer(i);
        }
        assertThat(top.topK()).isEmpty();
      }
    
      public void testNoElementsOffered() {
        TopKSelector<Integer> top = TopKSelector.least(10);
        assertThat(top.topK()).isEmpty();
      }
    
      public void testOfferedFewerThanK() {
        TopKSelector<Integer> top = TopKSelector.least(10);
        top.offer(3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ElementTypesAreNonnullByDefault.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.Target;
    import javax.annotation.Nonnull;
    import javax.annotation.meta.TypeQualifierDefault;
    
    /**
     * Marks all "top-level" types as non-null in a way that is recognized by Kotlin. Note that this
     * unfortunately includes type-variable usages, so we also provide {@link ParametricNullness} to
     * "undo" it as best we can.
     */
    @GwtCompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        /**
         * 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<>();
    
        /**
         * The elements to be returned by future calls to {@code previous()}, with the first at the top
         * of the stack.
         */
        final Stack<E> previousElements = 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)
  8. android/guava/src/com/google/common/collect/TreeTraverser.java

        @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();
              return top.root;
            }
          }
          return endOfData();
        }
    
    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)
  9. guava-testlib/src/com/google/common/collect/testing/google/ElementTypesAreNonnullByDefault.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.Target;
    import javax.annotation.Nonnull;
    import javax.annotation.meta.TypeQualifierDefault;
    
    /**
     * Marks all "top-level" types as non-null in a way that is recognized by Kotlin. Note that this
     * unfortunately includes type-variable usages, so we also provide {@link ParametricNullness} to
     * "undo" it as best we can.
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * Returns a boolean indicating if the project is the top level project for
         * this reactor build.  The top level project may be different from the
         * {@code rootDirectory}, especially if a subtree of the project is being
         * built, either because Maven has been launched in a subdirectory or using
         * a {@code -f} option.
         *
         * @return {@code true} if the project is the top level project for this build
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 05 09:42:51 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top