Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for artifactMapByVersionlessId (0.19 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)
Back to top