Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Nash (0.14 sec)

  1. android/guava/src/com/google/common/base/Equivalence.java

       *       y}, if {@code equivalent(x, y)}, then {@code hash(x) == hash(y)}. It is <i>not</i>
       *       necessary that the hash be distributable across <i>inequivalence</i>. If {@code
       *       equivalence(x, y)} is false, {@code hash(x) == hash(y)} may still be true.
       *   <li>{@code hash(null)} is {@code 0}.
       * </ul>
       */
      public final int hash(@CheckForNull T t) {
        if (t == null) {
          return 0;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         * ImmutableSortedMultiset#orderedBy(Comparator)}.
         */
        @SuppressWarnings("unchecked")
        public Builder(Comparator<? super E> comparator) {
          super(true); // doesn't allocate hash table in supertype
          this.comparator = checkNotNull(comparator);
          this.elements = (E[]) new Object[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Hashing.java

        return (bits + 31) & ~31;
      }
    
      /**
       * Returns a hash function which computes its hash code by concatenating the hash codes of the
       * underlying hash functions together. This can be useful if you need to generate hash codes of a
       * specific length.
       *
       * <p>For example, if you need 1024-bit hash codes, you could join two {@link Hashing#sha512} hash
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * objects per entry.  Instead we use an open-addressed hash table.  This design is basically
       * equivalent to RegularImmutableSet, save that instead of having a hash table containing the
       * elements directly and null for empty positions, we store indices of the keys in the hash table,
       * and ABSENT for empty positions.  We then look up the keys in alternatingKeysAndValues.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperty.java

                    && Objects.equals(methodName, that.methodName)
                    && Objects.equals(descriptor, that.descriptor);
            }
    
            @Override
            public int hashCode() {
                return Objects.hash(containingType, methodName, descriptor);
            }
        }
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileInjector.java

    @Singleton
    public class DefaultProfileInjector implements ProfileInjector {
    
        private static final Map<Model, Map<List<Profile>, Model>> CACHE = Collections.synchronizedMap(new WeakHashMap<>());
    
        // In order for the weak hash map to work correctly, we must not hold any reference to
        // the model used as the key.  So we use a dummy model as a placeholder to indicate that
        // we want to store the model used as they key.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

            return this.getCount() == that.getCount()
                && Objects.equal(this.getElement(), that.getElement());
          }
          return false;
        }
    
        /**
         * Return this entry's hash code, following the behavior specified in {@link
         * Multiset.Entry#hashCode}.
         */
        @Override
        public int hashCode() {
          E e = getElement();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            private final String tag;
    
            private final int hash;
    
            GavCacheKey(String groupId, String artifactId, String version, String tag) {
                this(gav(groupId, artifactId, version), tag);
            }
    
            GavCacheKey(String gav, String tag) {
                this.gav = gav;
                this.tag = tag;
                this.hash = Objects.hash(gav, tag);
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

            private final int hashCode;
    
            GAKey(String groupId, String artifactId) {
                this.groupId = groupId;
                this.artifactId = artifactId;
                this.hashCode = Objects.hash(groupId, artifactId);
            }
    
            @Override
            public int hashCode() {
                return hashCode;
            }
    
            @Override
            public boolean equals(Object obj) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
Back to top