Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 313 for size_t (0.16 sec)

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

      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
      @Benchmark
      void stringSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(STRING_SPLITTER.split(input));
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

      private static final int ARRAY_MASK = 0x0ffff;
      private static final int ARRAY_SIZE = 0x10000;
      List<Multiset<Integer>> multisets = new ArrayList<>(0x10000);
      int[] queries = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random();
        multisets.clear();
        for (int i = 0; i < ARRAY_SIZE; i++) {
          HashMultiset<Integer> multiset = HashMultiset.<Integer>create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

                builder.maximumSize,
                statsCounter,
                removalListener);
    
        this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker());
      }
    
      @Override
      public int size() {
        return cachingHashMap.size();
      }
    
      @Override
      public boolean isEmpty() {
        return cachingHashMap.isEmpty();
      }
    
      @Override
      public V get(Object key) {
        checkNotNull(key);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimap.java

       * which is given by {@code keySet().size()} or {@code asMap().size()}. See the opening section of
       * the {@link Multimap} class documentation for clarification.
       */
      int size();
    
      /**
       * Returns {@code true} if this multimap contains no key-value pairs. Equivalent to {@code size()
       * == 0}, but can in some cases be more efficient.
       */
      boolean isEmpty();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        List<String> stringEvents = stringCatcher.getEvents();
        assertEquals("Only one String should be delivered.", 1, stringEvents.size());
        assertEquals("Correct string should be delivered.", EVENT, stringEvents.get(0));
    
        // Check the Catcher<Object>...
        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        List<String> stringEvents = stringCatcher.getEvents();
        assertEquals("Only one String should be delivered.", 1, stringEvents.size());
        assertEquals("Correct string should be delivered.", EVENT, stringEvents.get(0));
    
        // Check the Catcher<Object>...
        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      private static final int ENDPOINT = -2;
    
      /**
       * Contains the link pointers corresponding with the entries, in the range of [0, size()). The
       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are
       * all "null" (UNSET).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ClusterException.java

       */
      static RuntimeException create(Collection<? extends Throwable> exceptions) {
        if (exceptions.size() == 0) {
          throw new IllegalArgumentException("Can't create an ExceptionCollection with no exceptions");
        }
        if (exceptions.size() == 1) {
          Throwable temp = exceptions.iterator().next();
          if (temp instanceof RuntimeException) {
            return (RuntimeException) temp;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        String data = "Test Using Larger Than Block-Size Key - Hash Key First";
    
        checkSha1("aa4ae5e15272d00e95705637ce8a3b55ed402112", key, data);
      }
    
      public void testRfc2202_hmacSha1_case7() {
        byte[] key = fillByteArray(80, 0xaa);
        String data = "Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data";
    
        checkSha1("e8e99d0f45237d786d6bbaa7965c7808bbff1a91", key, data);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
Back to top