Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for artifactMapByVersionlessId (0.1 sec)

  1. compat/maven-artifact/src/test/java/org/apache/maven/artifact/ArtifactUtilsTest.java

            list.add(newArtifact("a"));
            list.add(newArtifact("c"));
            list.add(newArtifact("e"));
            list.add(newArtifact("d"));
    
            Map<String, Artifact> map = ArtifactUtils.artifactMapByVersionlessId(list);
            assertNotNull(map);
            assertEquals(list, new ArrayList<>(map.values()));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

                        return;
                    }
                }
            }
            throw new IllegalArgumentException(message);
        }
    
        public static Map<String, Artifact> artifactMapByVersionlessId(Collection<Artifact> artifacts) {
            Map<String, Artifact> artifactMap = new LinkedHashMap<>();
    
            if (artifacts != null) {
                for (Artifact artifact : artifacts) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

         * @see #getArtifacts()
         */
        public Map<String, Artifact> getArtifactMap() {
            if (artifactMap == null) {
                artifactMap = ArtifactUtils.artifactMapByVersionlessId(getArtifacts());
            }
    
            return artifactMap;
        }
    
        public boolean equals(Object object) {
            if (this == object) {
                return true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top