Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Collison (0.39 sec)

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

        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(nullValue));
    
        // hash collision
        InternalEntry<Object, Object, ?> dummyEntry =
            segment.newEntryForTesting(new Object(), hash, entry);
        Object dummyValue = new Object();
        WeakValueReference<Object, Object, ?> dummyValueRef =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(nullValue));
    
        // hash collision
        InternalEntry<Object, Object, ?> dummyEntry =
            segment.newEntryForTesting(new Object(), hash, entry);
        Object dummyValue = new Object();
        WeakValueReference<Object, Object, ?> dummyValueRef =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashFunction.java

     *       they appear. Input data is never modified. {@link HashFunction} instances should always be
     *       stateless, and therefore thread-safe.
     *   <li><b>collision-averse:</b> while it can't be helped that a hash function will sometimes
     *       produce the same hash code for distinct inputs (a "collision"), every hash function strives
     *       to <i>some</i> degree to make this unlikely. (Without this condition, a function that
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Striped64.java

       *
       * Per-thread hash codes are initialized to random values.
       * Contention and/or table collisions are indicated by failed
       * CASes when performing an update operation (see method
       * retryUpdate). Upon a collision, if the table size is less than
       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(nullValue));
    
        // hash collision
        DummyEntry<Object, Object> dummy = DummyEntry.create(new Object(), hash, entry);
        Object dummyValue = new Object();
        ValueReference<Object, Object> dummyValueRef = map.newValueReference(dummy, dummyValue, 1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
        assertFalse(segment.containsValue(nullValue));
    
        // hash collision
        DummyEntry<Object, Object> dummy = DummyEntry.create(new Object(), hash, entry);
        Object dummyValue = new Object();
        ValueReference<Object, Object> dummyValueRef = map.newValueReference(dummy, dummyValue, 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/Striped64.java

       *
       * Per-thread hash codes are initialized to random values.
       * Contention and/or table collisions are indicated by failed
       * CASes when performing an update operation (see method
       * retryUpdate). Upon a collision, if the table size is less than
       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            // probably intended. So no point in using an equal-but-different factory argument.
            // We check twice to avoid confusion caused by accidental hash collision.
            equalArgs.set(i, shouldBeEqualArg);
          }
        }
        return equalArgs;
      }
    
      private static boolean hashCodeInsensitiveToArgReference(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/CharMatcher.java

        // TABLE is a precomputed hashset of whitespace characters. MULTIPLIER serves as a hash function
        // whose key property is that it maps 25 characters into the 32-slot table without collision.
        // Basically this is an opportunistic fast implementation as opposed to "good code". For most
        // other use-cases, the reduction in readability isn't worth it.
        static final String TABLE =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

          int leftCode = identityHashCode(left);
          int rightCode = identityHashCode(right);
          if (leftCode != rightCode) {
            return leftCode < rightCode ? -1 : 1;
          }
    
          // identityHashCode collision (rare, but not as rare as you'd think)
          int result = getUid(left).compareTo(getUid(right));
          if (result == 0) {
            throw new AssertionError(); // extremely, extremely unlikely.
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top