Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for hashKeys (0.3 sec)

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

      @J2ktIncompatible
      @GwtIncompatible // doesn't build without explicit type parameters on build() methods
      public void testGenerics() {
        ListMultimap<String, Integer> a = MultimapBuilder.hashKeys().arrayListValues().build();
        SortedSetMultimap<String, Integer> b = MultimapBuilder.linkedHashKeys().treeSetValues().build();
        SetMultimap<String, Integer> c =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 27 09:26:07 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

      @J2ktIncompatible
      @GwtIncompatible // doesn't build without explicit type parameters on build() methods
      public void testGenerics() {
        ListMultimap<String, Integer> a = MultimapBuilder.hashKeys().arrayListValues().build();
        SortedSetMultimap<String, Integer> b = MultimapBuilder.linkedHashKeys().treeSetValues().build();
        SetMultimap<String, Integer> c =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 09:26:07 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ArrayListMultimap.java

      /**
       * Creates a new, empty {@code ArrayListMultimap} with the default initial capacities.
       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys().arrayListValues().build()}.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          ArrayListMultimap<K, V> create() {
        return new ArrayListMultimap<>();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ArrayListMultimap.java

      /**
       * Creates a new, empty {@code ArrayListMultimap} with the default initial capacities.
       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys().arrayListValues().build()}.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          ArrayListMultimap<K, V> create() {
        return new ArrayListMultimap<>();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MultimapBuilder.java

      public static MultimapBuilderWithKeys<@Nullable Object> hashKeys() {
        return hashKeys(DEFAULT_EXPECTED_KEYS);
      }
    
      /**
       * Uses a hash table to map keys to value collections, initialized to expect the specified number
       * of keys.
       *
       * @throws IllegalArgumentException if {@code expectedKeys < 0}
       */
      public static MultimapBuilderWithKeys<@Nullable Object> hashKeys(int expectedKeys) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static <E> List<E> list(E... elements) {
        return ImmutableList.copyOf(elements);
      }
    
      /**
       * Utility method to verify that the given LinkedHashSet is equal to and hashes identically to a
       * set constructed with the elements in the given collection. Also verifies that the ordering in
       * the set is the same as the ordering of the given contents.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(new ImmutableSetWithBadHashesGenerator())
                .named(ImmutableSetTest.class.getName() + ", with bad hashes")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hashing.java

                function.bits(),
                function);
          }
        }
    
        @Override
        HashCode makeHash(Hasher[] hashers) {
          byte[] bytes = new byte[bits() / 8];
          int i = 0;
          for (Hasher hasher : hashers) {
            HashCode newHash = hasher.hash();
            i += newHash.writeBytesTo(bytes, i, newHash.bits() / 8);
          }
          return HashCode.fromBytesNoCopy(bytes);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

        @Override
        boolean isPartialView() {
          return ImmutableMap.this.isPartialView();
        }
    
        @Override
        public int hashCode() {
          // ImmutableSet.of(value).hashCode() == value.hashCode(), so the hashes are the same
          return ImmutableMap.this.hashCode();
        }
    
        @Override
        UnmodifiableIterator<Entry<K, ImmutableSet<V>>> entryIterator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(new ImmutableSetWithBadHashesGenerator())
                .named(ImmutableSetTest.class.getName() + ", with bad hashes")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
Back to top