- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 123 for hashLong (0.12 sec)
-
guava-tests/test/com/google/common/hash/HashCodeTest.java
} public void testHashCode_equalsAndSerializable() throws Exception { sanityTester().testEqualsAndSerializable(); } public void testRoundTripHashCodeUsingBaseEncoding() { HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII); HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString())); assertEquals(hash1, hash2); } public void testObjectHashCode() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
* of non-null entries. */ @SuppressWarnings("nullness") Entry<K, V>[] entries = (n == entryArray.length) ? (Entry<K, V>[]) entryArray : createEntryArray(n); int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR); @Nullable ImmutableMapEntry<K, V>[] table = createEntryArray(tableSize); int mask = tableSize - 1;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 16.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
* * <p>Parameters for the benchmark are: * * <ul> * <li>size: The length of the byte array to hash. * <li>hashFunctionEnum: The {@link HashFunction} to use for hashing. * </ul> * * @author Kurt Alfred Kluever */ public class HashFunctionBenchmark { // Use a statically configured random instance for all of the benchmarks
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
} public void testHashCode_equalsAndSerializable() throws Exception { sanityTester().testEqualsAndSerializable(); } public void testRoundTripHashCodeUsingBaseEncoding() { HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII); HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString())); assertEquals(hash1, hash2); } public void testObjectHashCode() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
guava/src/com/google/common/hash/Murmur3_128HashFunction.java
static final HashFunction MURMUR3_128 = new Murmur3_128HashFunction(0); static final HashFunction GOOD_FAST_HASH_128 = new Murmur3_128HashFunction(Hashing.GOOD_FAST_HASH_SEED); // TODO(user): when the shortcuts are implemented, update BloomFilterStrategies private final int seed; Murmur3_128HashFunction(int seed) { this.seed = seed; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 5.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
import static java.nio.charset.StandardCharsets.UTF_8; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.util.Random; /** Benchmarks for the hashing of UTF-8 strings. */ public class HashStringBenchmark { static class MaxCodePoint { final int value; /** * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
import static java.nio.charset.StandardCharsets.UTF_8; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.util.Random; /** Benchmarks for the hashing of UTF-8 strings. */ public class HashStringBenchmark { static class MaxCodePoint { final int value; /** * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 5.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/Fingerprint2011.java
import static java.lang.Long.rotateRight; import com.google.common.annotations.VisibleForTesting; /** * Implementation of Geoff Pike's fingerprint2011 hash function. See {@link Hashing#fingerprint2011} * for information on the behaviour of the algorithm. * * <p>On Intel Core2 2.66, on 1000 bytes, fingerprint2011 takes 0.9 microseconds compared to
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Dec 28 17:50:25 UTC 2021 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
*/ private static void assertCrc(int expectedCrc, byte[] data) { int actualCrc = Hashing.crc32c().hashBytes(data).asInt(); assertEquals( String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc), expectedCrc, actualCrc); int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt(); assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
*/ private static void assertCrc(int expectedCrc, byte[] data) { int actualCrc = Hashing.crc32c().hashBytes(data).asInt(); assertEquals( String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc), expectedCrc, actualCrc); int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt(); assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.5K bytes - Viewed (0)