Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 1,777 for Equals (0.07 sec)

  1. guava/src/com/google/common/collect/Synchronized.java

        @Override
        Set<E> delegate() {
          return (Set<E>) super.delegate();
        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o == this) {
            return true;
          }
          synchronized (mutex) {
            return delegate().equals(o);
          }
        }
    
        @Override
        public int hashCode() {
          synchronized (mutex) {
            return delegate().hashCode();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/ExtensibleEnums.java

            }
    
            @Override
            public int hashCode() {
                return id().hashCode();
            }
    
            @Override
            public boolean equals(Object obj) {
                return obj != null && getClass() == obj.getClass() && id().equals(((DefaultExtensibleEnum) obj).id());
            }
    
            @Override
            public String toString() {
                return getClass().getSimpleName() + "[" + id() + "]";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.testing.SerializableTester;
    import org.junit.Ignore;
    
    /**
     * Basic reserialization test for collection types that must preserve {@code equals()} behavior when
     * reserialized. (Sets and Lists, but not bare Collections.)
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/TransferResourceIdentifier.java

    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * Immutable identifier of a {@link TransferResource}.
     * The {@link TransferResource} is not immutable and does not implement {@code Objects#equals} and {@code Objects#hashCode} methods,
     * making it not very suitable for usage in collections.
     */
    record TransferResourceIdentifier(String repositoryId, String repositoryUrl, String resourceName, @Nullable File file) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

        return ImmutableCollection.unsafeDelegate(delegate.values());
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        return delegate.equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    
      @Override
      public String toString() {
        return delegate.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Interners.java

        @Override
        public int hashCode() {
          return interner.hashCode();
        }
    
        @Override
        public boolean equals(@CheckForNull Object other) {
          if (other instanceof InternerFunction) {
            InternerFunction<?> that = (InternerFunction<?>) other;
            return interner.equals(that.interner);
          }
    
          return false;
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/CaseFormat.java

          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof StringConverter) {
            StringConverter that = (StringConverter) object;
            return sourceFormat.equals(that.sourceFormat) && targetFormat.equals(that.targetFormat);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

            }
    
            @Override
            public boolean equals(Object o) {
                if (this == o) {
                    return true;
                }
                if (o == null || getClass() != o.getClass()) {
                    return false;
                }
                Key<?> key = (Key<?>) o;
                return Objects.equals(id, key.id) && Objects.equals(type, key.type);
            }
    
            @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

                    return false;
                }
            } else if (!exception.getClass().equals(other.exception.getClass())) {
                return false;
            }
            if (requestType != other.requestType) {
                return false;
            } else {
                return source.equals(other.source);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java

        }
    
    
        @Override
        public long length () {
            return 0L;
        }
    
    
        @Override
        public boolean equals ( Object obj ) {
            if ( obj instanceof SmbShareInfo ) {
                SmbShareInfo si = (SmbShareInfo) obj;
                return Objects.equals(this.netName, si.netName);
            }
            return false;
        }
    
    
        @Override
        public int hashCode () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Feb 17 09:30:57 UTC 2019
    - 3.1K bytes
    - Viewed (0)
Back to top