Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for top (0.18 sec)

  1. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. 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();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. 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();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top