Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for Tilley (0.34 sec)

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

        TreeMultimap<String, Integer> empty = TreeMultimap.create();
        TreeMultimap<String, Integer> filled = TreeMultimap.create();
        filled.put("a", 1);
        filled.put("a", 2);
        filled.put("b", 2);
        filled.put("c", 3);
        CollectorTester.of(collector, equivalence)
            .expectCollects(empty)
            .expectCollects(
                filled, mapEntry("a", 1), mapEntry("a", 2), mapEntry("b", 2), mapEntry("c", 3));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableBiMap.java

        public ImmutableBiMap<K, V> buildOrThrow() {
          switch (size) {
            case 0:
              return of();
            case 1:
              // requireNonNull is safe because the first `size` elements have been filled in.
              Entry<K, V> onlyEntry = requireNonNull(entries[0]);
              return of(onlyEntry.getKey(), onlyEntry.getValue());
            default:
              /*
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeManyConstants() {
        // Test the thorough test inputs, which also includes special constants in the Miller-Rabin
        // tests.
        for (long l : POSITIVE_LONG_CANDIDATES) {
          assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l));
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          } catch (InterruptedException e) {
            /* ignore */
          }
          try {
            // Fill up heap so soft references get cleared.
            filler = new byte[Math.max(filler.length, filler.length * 2)];
          } catch (OutOfMemoryError e) {
          }
        }
    
        CacheTesting.processPendingNotifications(cache);
        assertEquals(1, cache.size());
        assertEquals(1, removalListener.getCount());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

          RegularImmutableMap<K, V> empty = (RegularImmutableMap<K, V>) EMPTY;
          return empty;
        } else if (n == 1) {
          // requireNonNull is safe because the first `2*n` elements have been filled in.
          checkEntryNotNull(
              requireNonNull(alternatingKeysAndValues[0]), requireNonNull(alternatingKeysAndValues[1]));
          return new RegularImmutableMap<K, V>(null, alternatingKeysAndValues, 1);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                    // requireNonNull is safe because the first `size` elements have been filled in.
                    requireNonNull(e1);
                    requireNonNull(e2);
                    return comparator.compare(e1.getKey(), e2.getKey());
                  });
              // requireNonNull is safe because the first `size` elements have been filled in.
              Entry<K, V> firstEntry = requireNonNull(entryArray[0]);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

        // be deleted.
        Map<K, @Nullable V> duplicates = null;
        int dupCount = 0;
        for (int i = 0; i < n; i++) {
          // requireNonNull is safe because the first `n` elements have been filled in.
          entryArray[i] = makeImmutable(requireNonNull(entryArray[i]));
          K key = entryArray[i].getKey();
          V value = entryArray[i].getValue();
          V oldValue = delegateMap.put(key, value);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

                .and(Equivalence.equals());
        ImmutableListMultimap<Character, Character> empty = ImmutableListMultimap.of();
        ImmutableListMultimap<Character, Character> filled =
            ImmutableListMultimap.<Character, Character>builder()
                .putAll('b', Arrays.asList('a', 'n', 'a', 'n', 'a'))
                .putAll('a', Arrays.asList('p', 'p', 'l', 'e'))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        }
      }
    
      private void recurse(int level) {
        // We're going to reuse the stimuli array 3^steps times by overwriting it
        // in a recursive loop.  Sneaky.
        if (level == stimuli.length) {
          // We've filled the array.
          compareResultsForThisListOfStimuli();
        } else {
          // Keep recursing to fill the array.
          for (Stimulus<E, ? super I> stimulus : getStimulusValues()) {
            stimuli[level] = stimulus;
    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)
  10. android/guava/src/com/google/common/collect/HashBiMap.java

        prevInInsertionOrder = createFilledWithAbsent(expectedSize);
        nextInInsertionOrder = createFilledWithAbsent(expectedSize);
      }
    
      /** Returns an int array of the specified size, filled with ABSENT. */
      private static int[] createFilledWithAbsent(int size) {
        int[] array = new int[size];
        Arrays.fill(array, ABSENT);
        return array;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
Back to top