- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 554 for HashCode (0.17 sec)
-
android/guava/src/com/google/common/collect/RegularImmutableMap.java
* double the index of the entry in entrySet.asList.) * * The basic data structure is described in https://en.wikipedia.org/wiki/Open_addressing. * The pointer to a key is stored in hashTable[Hashing.smear(key.hashCode()) % table.length], * save that if that location is already full, we try the next index, and the next, until we * find an empty table position. Since the table has a power-of-two size, we use
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 15 22:32:14 UTC 2024 - 22.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
sink.putByte((byte) 7); sink.putBytes(new byte[] {}); sink.putBytes(new byte[] {8}); HashCode unused = sink.hash(); sink.assertInvariants(8); sink.assertBytes(expected); } public void testShort() { Sink sink = new Sink(4); sink.putShort((short) 0x0201); HashCode unused = sink.hash(); sink.assertInvariants(2); sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
dummy += Objects.hashCode(S0, S1, S2, S3); } return dummy; } @Benchmark int hashString_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3, S4); } return dummy; } @Benchmark int hashMixed_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(I2, S1, D1, S2, I0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java
private final ImmutableTable<Character, Integer, String> testTable = new SingletonImmutableTable<>('a', 1, "blah"); public void testHashCode() { assertEquals(Objects.hashCode('a', 1, "blah"), testTable.hashCode()); } public void testCellSet() { assertEquals(ImmutableSet.of(immutableCell('a', 1, "blah")), testTable.cellSet()); } public void testColumn() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/graph/EndpointPair.java
public abstract boolean equals(@CheckForNull Object obj); /** * The hashcode of an ordered {@link EndpointPair} is equal to {@code Objects.hashCode(source(), * target())}. The hashcode of an unordered {@link EndpointPair} is equal to {@code * nodeU().hashCode() + nodeV().hashCode()}. */ @Override public abstract int hashCode(); private static final class Ordered<N> extends EndpointPair<N> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
*/ public static HashCode combineOrdered(Iterable<HashCode> hashCodes) { Iterator<HashCode> iterator = hashCodes.iterator(); checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine."); int bits = iterator.next().bits(); byte[] resultBytes = new byte[bits / 8]; for (HashCode hashCode : hashCodes) { byte[] nextBytes = hashCode.asBytes(); checkArgument(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 29.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashFunction.java
* * <h3>Relationship to {@link Object#hashCode}</h3> * * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation * between hash algorithms and the data they act on, so alternate hash algorithms can't be easily * substituted. Also, implementations of {@code hashCode} tend to be poor-quality, in part because
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashFunction.java
* * <h3>Relationship to {@link Object#hashCode}</h3> * * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation * between hash algorithms and the data they act on, so alternate hash algorithms can't be easily * substituted. Also, implementations of {@code hashCode} tend to be poor-quality, in part because
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java
} public void testHashCode() { assertEquals(control("foo", 1).hashCode(), entry("foo", 1).hashCode()); assertEquals(control("bar", 2).hashCode(), entry("bar", 2).hashCode()); } public void testHashCodeNull() { assertEquals(control(NE, 1).hashCode(), entry(NE, 1).hashCode()); } public void testNegativeCount() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.8K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/UrlSource.java
private final URL url; private final int hashCode; /** * Creates a new source backed by the specified URL. * * @param url The file, must not be {@code null}. */ public UrlSource(URL url) { this.url = Objects.requireNonNull(url, "url cannot be null"); this.hashCode = Objects.hashCode(url); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0)