Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 74 for stats (0.18 sec)

  1. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

              sb.append(DELIMITER_STRING);
            }
            sb.append(comp);
            append = true;
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
       * Starts with an empty delimiter and changes to the desired value at the end of the iteration.
       */
      @Benchmark
      int assignDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMultiset.java

              element = entry.getElement();
              remaining = entry.getCount();
            }
            remaining--;
            /*
             * requireNonNull is safe because `remaining` starts at 0, forcing us to initialize
             * `element` above. After that, we never clear it.
             */
            return requireNonNull(element);
          }
        };
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSet.java

       *         .build();
       * }</pre>
       *
       * <p>Elements appear in the resulting set in the same order they were first added to the builder.
       *
       * <p>Building does not change the state of the builder, so it is still possible to add more
       * elements and to build again.
       *
       * @since 2.0
       */
      public static class Builder<E> extends ImmutableCollection.ArrayBasedBuilder<E> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMaker.java

     * operations. A partially-reclaimed entry is never exposed to the user. Any {@link Map.Entry}
     * instance retrieved from the map's {@linkplain Map#entrySet entry set} is a snapshot of that
     * entry's state at the time of retrieval; such entries do, however, support {@link
     * Map.Entry#setValue}, which simply calls {@link Map#put} on the entry's key.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        tester.testFailedFuture("failure");
      }
    
      public void testCancel() throws Exception {
        assertTrue(future.cancel(true));
        tester.testCancelledFuture();
      }
    
      /** Tests the initial state of the future. */
      public void testCreate() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
         * properly update its state.
         */
        void promoteToNext(E e) {
          if (nextElements.remove(e)) {
            nextElements.push(e);
          } else {
            throw new UnknownElementException(nextElements, e);
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/LinkedListMultimap.java

          next = (keyList == null) ? null : keyList.head;
        }
    
        /**
         * Constructs a new iterator over all values for the specified key starting at the specified
         * index. This constructor is optimized so that it starts at either the head or the tail,
         * depending on which is closer to the specified index. This allows adds to the tail to be done
         * in constant time.
         *
         * @throws IndexOutOfBoundsException if index is invalid
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Lists.java

       * containing two inner lists of three and two elements, all in the original order.
       *
       * <p>The outer list is unmodifiable, but reflects the latest state of the source list. The inner
       * lists are sublist views of the original list, produced on demand using {@link List#subList(int,
       * int)}, and are subject to all the usual caveats about modification as explained in that API.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 16:48:36 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

          startUpCalled++;
          assertEquals(State.STARTING, state());
        }
    
        @Override
        protected void shutDown() throws Exception {
          assertEquals(1, startUpCalled);
          assertEquals(0, shutDownCalled);
          shutDownCalled++;
          assertEquals(State.STOPPING, state());
        }
    
        @Override
        protected Executor executor() {
          transitionStates.add(state());
          return directExecutor();
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java

      MapsImplEnum mapsImpl;
    
      /**
       * A map of contents pre-created before experiment starts to only measure map creation cost. The
       * implementation for the creation of contents is independent and could be different from that of
       * the map under test.
       */
      Map<Element, Element> contents;
    
      /** Map pre-created before experiment starts to only measure iteration cost during experiment. */
      Map<Element, Element> map;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 20 15:07:46 UTC 2019
    - 3.4K bytes
    - Viewed (0)
Back to top