Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 1,167 for Equals (0.04 seconds)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/TypeArtifactFilter.java

        }
    
        @Override
        public boolean include(Artifact artifact) {
            return type.equals(artifact.getType());
        }
    
        @Override
        public int hashCode() {
            int hash = 17;
            hash = hash * 31 + type.hashCode();
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

            }
    
            @Override
            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                }
    
                if (o instanceof CacheKey that) {
                    return parentRealm == that.parentRealm
                            && CacheUtils.pluginEquals(plugin, that.plugin)
                            && Objects.equals(workspace, that.workspace)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  3. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

              e,
              equalObject1
                  + " [group 1, item 1] must be Object#equals to "
                  + notEqualObject1
                  + " [group 1, item 2]");
          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
       * Test EqualsTester with no equals or not equals objects. This checks proper handling of null,
       * incompatible class and reflexive tests
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestMavenWorkspaceReader.java

            return Collections.emptyList();
        }
    
        @Override
        public Model findModel(Artifact artifact) {
            if (GROUP_ID.equals(artifact.getGroupId())
                    && ARTIFACT_ID.equals(artifact.getArtifactId())
                    && VERSION.equals(artifact.getVersion())) {
                Model m = new Model();
                m.setArtifactId(ARTIFACT_ID);
                m.setGroupId(GROUP_ID);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/DocBookBuilder.java

        public void appendChild(Node node) {
            boolean inPara = false;
            if (node instanceof Element) {
                Element element = (Element) node;
                if (element.getTagName().equals("para") && stack.getFirst().getTagName().equals("para")) {
                    pop();
                    inPara = true;
                }
            }
            stack.getFirst().appendChild(node);
            if (inPara) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.8K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java

            }
    
            @Override
            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                }
    
                if (o instanceof CacheKey that) {
                    return CacheUtils.pluginEquals(plugin, that.plugin)
                            && Objects.equals(workspace, that.workspace)
                            && Objects.equals(localRepo, that.localRepo)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/reflect/AbstractInvocationHandler.java

        if (args == null) {
          args = NO_ARGS;
        }
        if (args.length == 0 && method.getName().equals("hashCode")) {
          return hashCode();
        }
        if (args.length == 1
            && method.getName().equals("equals")
            && method.getParameterTypes()[0] == Object.class) {
          Object arg = args[0];
          if (arg == null) {
            return false;
          }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

            "Two Maps should not be equal if exactly one of them contains a null value.",
            getMap().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_smallerMap() {
        Collection<Entry<K, V>> fewerEntries = getSampleEntries(getNumEntries() - 1);
        assertFalse(
            "Maps of different sizes should not be equal.", getMap().equals(newHashMap(fewerEntries)));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

            getList().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_shorterList() {
        Collection<E> fewerElements = getSampleElements(getNumElements() - 1);
        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(fewerElements)));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.6K bytes
    - Click Count (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java

            return result;
        }
    
        @Override
        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
    
            if (other instanceof Restriction restriction) {
                if (lowerBound != null) {
                    if (!lowerBound.equals(restriction.lowerBound)) {
                        return false;
                    }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top