Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Nash (0.18 sec)

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

        Set<Set<Integer>> reverse = powerSet(ImmutableSet.copyOf(elements.asList().reverse()));
        new EqualsTester().addEqualityGroup(forward, reverse).testEquals();
      }
    
      /**
       * Test that a hash code miscomputed by "input.hashCode() * tooFarValue / 2" is correct under our
       * {@code hashCode} implementation.
       */
      public void testPowerSetHashCode_inputHashCodeTimesTooFarValueIsZero() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        if (key == null) {
          return null;
        }
        int hash = hash(key);
        return segmentFor(hash).getEntry(key, hash);
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        if (key == null) {
          return false;
        }
        int hash = hash(key);
        return segmentFor(hash).containsKey(key, hash);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

            adjust = ~~adjust;
            // in GWT, we have to deal with integer overflow carefully
          }
          int hash = 1;
          for (Set<E> axis : axes) {
            hash = 31 * hash + (size() / axis.size() * axis.hashCode());
    
            hash = ~~hash;
          }
          hash += adjust;
          return ~~hash;
        }
      }
    
      /**
       * Returns the set of all possible subsets of {@code set}. For example, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/CharMatcher.java

       *
       * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the
       * negation is cheaper to precompute than the matcher itself; it tries to build small hash tables
       * for matchers that only match a few characters, and so on. In the worst-case scenario, it
       * constructs an eight-kilobyte bit array and queries that. In many situations this produces a
    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)
  7. guava/src/com/google/common/base/CharMatcher.java

       *
       * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the
       * negation is cheaper to precompute than the matcher itself; it tries to build small hash tables
       * for matchers that only match a few characters, and so on. In the worst-case scenario, it
       * constructs an eight-kilobyte bit array and queries that. In many situations this produces a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

      }
    
      /**
       * Sets the minimum total size for the internal hash tables. For example, if the initial capacity
       * is {@code 60}, and the concurrency level is {@code 8}, then eight segments are created, each
       * having a hash table of size eight. Providing a large enough estimate at construction time
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

          }
    
          @Override
          @CheckForNull
          K getSuperclass(K type) {
            return delegate.getSuperclass(type);
          }
        }
      }
    
      // This happens to be the hash of the class as of now. So setting it makes a backward compatible
      // change. Going forward, if any incompatible change is added, we can change the UID back to 1.
      private static final long serialVersionUID = 3637540370352322684L;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
Back to top