Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for hash (0.25 sec)

  1. 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)
  2. maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

            GAKey(String groupId, String artifactId) {
                this.groupId = (groupId != null) ? groupId : "";
                this.artifactId = (artifactId != null) ? artifactId : "";
    
                hashCode = Objects.hash(this.groupId, this.artifactId);
            }
    
            @Override
            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Optional.java

       */
      @Override
      public abstract boolean equals(@CheckForNull Object object);
    
      /**
       * Returns a hash code for this instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this class leaves the specific choice of
       * hash code unspecified, unlike the Java 8+ equivalent.
       */
      @Override
      public abstract int hashCode();
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Optional.java

       */
      @Override
      public abstract boolean equals(@CheckForNull Object object);
    
      /**
       * Returns a hash code for this instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this class leaves the specific choice of
       * hash code unspecified, unlike the Java 8+ equivalent.
       */
      @Override
      public abstract int hashCode();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/PathSource.java

        @Override
        public boolean equals(Object o) {
            return this == o || o instanceof PathSource ps && Objects.equals(path, ps.path);
        }
    
        @Override
        public int hashCode() {
            return Objects.hash(path);
        }
    
        @Override
        public String toString() {
            return "PathSource[" + "location='" + location + '\'' + ", " + "path=" + path + ']';
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSortedSet.java

         * cl/592273615 and cl/592273683.)
         */
        @SuppressWarnings("unchecked")
        public Builder(Comparator<? super E> comparator) {
          super(true); // don't construct guts of hash-based set builder
          this.comparator = checkNotNull(comparator);
          this.elements = (E[]) new Object[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
          this.n = 0;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableCollection.java

     *       worse, and possibly better, than creating a mutable collection and copying it.
     *   <li>Implementations generally do not cache hash codes. If your element or key type has a slow
     *       {@code hashCode} implementation, it should cache it itself.
     * </ul>
     *
     * <h4>Example usage</h4>
     *
     * <pre>{@code
     * class Foo {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  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. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *       worse, and possibly better, than creating a mutable collection and copying it.
     *   <li>Implementations generally do not cache hash codes. If your element or key type has a slow
     *       {@code hashCode} implementation, it should cache it itself.
     * </ul>
     *
     * <h4>Example usage</h4>
     *
     * <pre>{@code
     * class Foo {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/ReactorReader.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * An implementation of a workspace reader that knows how to search the Maven reactor for artifacts, either as packaged
     * jar if it has been built, or only compile output directory if packaging hasn't happened yet.
     *
     */
    @Named(ReactorReader.HINT)
    @SessionScoped
    class ReactorReader implements MavenWorkspaceReader {
        public static final String HINT = "reactor";
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top