/external/guava/guava/src/com/google/common/hash/ |
AbstractStreamingHashFunction.java | 27 * invokes the appropriate method on {@link #newHasher()}, then return the result of 30 * <p>Invocations of {@link #newHasher(int)} also delegate to {@linkplain #newHasher()}, ignoring 37 return newHasher().putObject(instance, funnel).hash(); 41 return newHasher().putUnencodedChars(input).hash(); 45 return newHasher().putString(input, charset).hash(); 49 return newHasher().putInt(input).hash(); 53 return newHasher().putLong(input).hash(); 57 return newHasher().putBytes(input).hash(); 61 return newHasher().putBytes(input, off, len).hash() [all...] |
HashFunction.java | 92 * {@link Hasher}. Obtain a new hasher from the hash function using {@link #newHasher}, 95 * an {@linkplain #newHasher example} of this.) 138 * HashCode hc = hf.newHasher() 143 Hasher newHasher(); 146 * Begins a new hash code computation as {@link #newHasher()}, but provides a hint of the 151 Hasher newHasher(int expectedInputSize); 154 * Shortcut for {@code newHasher().putInt(input).hash()}; returns the hash code for the given 163 * Shortcut for {@code newHasher().putLong(input).hash()}; returns the hash code for the 170 * Shortcut for {@code newHasher().putBytes(input).hash()}. The implementation 177 * Shortcut for {@code newHasher().putBytes(input, off, len).hash()}. The implementatio [all...] |
AbstractNonStreamingHashFunction.java | 27 * All the hash computation done using {@linkplain #newHasher()} are delegated to the {@linkplain 34 public Hasher newHasher() { 39 public Hasher newHasher(int expectedInputSize) { 45 return newHasher().putObject(instance, funnel).hash(); 50 Hasher hasher = newHasher(len * 2); 62 return newHasher(4).putInt(input).hash(); 66 return newHasher(8).putLong(input).hash();
|
HashingOutputStream.java | 47 this.hasher = checkNotNull(hashFunction.newHasher());
|
AbstractCompositeHashFunction.java | 24 * An abstract composition of multiple hash functions. {@linkplain #newHasher()} delegates to the 49 public Hasher newHasher() { 52 hashers[i] = functions[i].newHasher();
|
ChecksumHashFunction.java | 49 public Hasher newHasher() {
|
HashingInputStream.java | 43 this.hasher = checkNotNull(hashFunction.newHasher());
|
MessageDigestHashFunction.java | 81 @Override public Hasher newHasher() {
|
SipHashFunction.java | 67 @Override public Hasher newHasher() {
|
Crc32cHashFunction.java | 31 public Hasher newHasher() {
|
Murmur3_128HashFunction.java | 55 @Override public Hasher newHasher() {
|
Murmur3_32HashFunction.java | 61 @Override public Hasher newHasher() {
|
/external/guava/guava-tests/test/com/google/common/hash/ |
AbstractNonStreamingHashFunctionTest.java | 37 * and checks that their results are identical, no matter which newHasher version we used. 41 new StreamingVersion().newHasher(), 42 new StreamingVersion().newHasher(52), 43 new NonStreamingVersion().newHasher(), 44 new NonStreamingVersion().newHasher(123)); 83 Hasher h1 = new NonStreamingVersion().newHasher(); 84 Hasher h2 = new NonStreamingVersion().newHasher(); 101 public Hasher newHasher() {
|
HashTestUtils.java | 459 Hasher hasher1 = hashFunction.newHasher(); 460 Hasher hasher2 = hashFunction.newHasher(); 471 Hasher hasher = hashFunction.newHasher(); 494 hashFunction.newHasher(size).putBytes(bytes).hash()); 498 hashFunction.newHasher(size).putBytes(bytes, off, len).hash()); 504 hashFunction.newHasher().putInt(i).hash()); 510 hashFunction.newHasher().putLong(l).hash()); 526 hashFunction.newHasher().putUnencodedChars("abc").hash(), 527 hashFunction.newHasher().putUnencodedChars("ab").putUnencodedChars("c").hash(), 528 hashFunction.newHasher().putUnencodedChars("a").putUnencodedChars("bc").hash() [all...] |
SipHashFunctionTest.java | 166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); 168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); 173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); 175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong());
|
Murmur3Hash128Test.java | 55 assertEquals(expected, murmur3_128(seed).newHasher().putBytes(input).hash()); 72 Hasher hasher = murmur3_128(seed).newHasher();
|
MessageDigestHashFunctionTest.java | 62 Hasher sha1 = Hashing.sha1().newHasher(); 76 Hasher sha1 = Hashing.sha1().newHasher();
|
Murmur3Hash32Test.java | 62 Hasher hasher = murmur3_32(seed).newHasher();
|
HashingOutputStreamTest.java | 40 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
|
AbstractStreamingHasherTest.java | 156 Hasher controlSink = control.newHasher(1024);
|
HashingInputStreamTest.java | 46 EasyMock.expect(hashFunction.newHasher()).andReturn(hasher).once();
|
HashingTest.java | 366 Hasher hasher = Hashing.md5().newHasher();
|
/external/caliper/caliper/src/main/java/com/google/caliper/model/ |
InstrumentSpec.java | 78 .newHasher()
|
Scenario.java | 84 .newHasher()
|
/external/guava/guava/src/com/google/common/io/ |
ByteSource.java | 296 Hasher hasher = hashFunction.newHasher();
|