Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for dumps (0.23 sec)

  1. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
        assertEquals(
            "9753980fe94daa8ecaa82216519393a9",
            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
    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)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

          Set<Object> seenKeys = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            Object key = requireNonNull(localAlternatingKeysAndValues[2 * i]);
            if (!seenKeys.add(key)) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return localAlternatingKeysAndValues;
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashingTest.java

        assertEquals(expected, actual);
      }
    
      private static final String EMPTY_STRING = "";
      private static final String TQBFJOTLD = "The quick brown fox jumps over the lazy dog";
      private static final String TQBFJOTLDP = "The quick brown fox jumps over the lazy dog.";
    
      private static final ImmutableTable<HashFunction, String, String> KNOWN_HASHES =
          ImmutableTable.<HashFunction, String, String>builder()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          ImmutableBiMap.copyOf(map);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).containsMatch("1|2");
          // We don't specify which of the two dups should be reported.
        }
      }
    
      // TODO(b/172823566): Use mainline testToImmutableBiMap once CollectorTester is usable to java7.
      public void testToImmutableBiMap_java7_combine() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SortedListsTest extends TestCase {
      private static final ImmutableList<Integer> LIST_WITH_DUPS =
          ImmutableList.of(1, 1, 2, 4, 4, 4, 8);
    
      private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8);
    
      void assertModelAgrees(
          List<Integer> list,
          Integer key,
          int answer,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
        assertEquals(
            "9753980fe94daa8ecaa82216519393a9",
            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

        }
      }
    
      public void testPutAfterHash() {
        Hasher sha1 = Hashing.sha1().newHasher();
    
        assertEquals(
            "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
            sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)
                .hash()
                .toString());
        assertThrows(IllegalStateException.class, () -> sha1.putInt(42));
      }
    
      public void testHashTwice() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SortedListsTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SortedListsTest extends TestCase {
      private static final ImmutableList<Integer> LIST_WITH_DUPS =
          ImmutableList.of(1, 1, 2, 4, 4, 4, 8);
    
      private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8);
    
      void assertModelAgrees(
          List<Integer> list,
          Integer key,
          int answer,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMap.java

          Set<K> seen = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            if (!seen.add(entries[i].getKey())) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return entries;
          }
          @SuppressWarnings({"rawtypes", "unchecked"})
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          ImmutableBiMap.copyOf(map);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).containsMatch("1|2");
          // We don't specify which of the two dups should be reported.
        }
      }
    
      public void testToImmutableBiMap() {
        Collector<Entry<String, Integer>, ?, ImmutableBiMap<String, Integer>> collector =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top