Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MetadataGraphEdge (0.27 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphEdge.java

         */
        @Override
        @SuppressWarnings("checkstyle:equalshashcode")
        public boolean equals(Object o) {
            if (o instanceof MetadataGraphEdge) {
                MetadataGraphEdge e = (MetadataGraphEdge) o;
    
                return objectsEqual(version, e.version)
                        && ArtifactScopeEnum.checkScope(scope)
                                .getScope()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

                List<MetadataGraphEdge> ins = getIncidentEdges(v);
                if (ins != null) {
                    for (MetadataGraphEdge e : ins) {
                        sb.append("       from :  ").append(e.toString()).append('\n');
                    }
                } else {
                    sb.append("      no entries\n");
                }
    
                List<MetadataGraphEdge> outs = getExcidentEdges(v);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java

            // v1-->v2
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.2", true, null, null, 2, 2));
    
            // v1-->v3
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.2", true, null, null, 4, 2));
    
            // v3-->v4
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

        private MetadataGraphEdge cleanEdges(
                MetadataGraphVertex v, List<MetadataGraphEdge> edges, ArtifactScopeEnum scope) {
            if (edges == null || edges.isEmpty()) {
                return null;
            }
    
            if (edges.size() == 1) {
                MetadataGraphEdge e = edges.get(0);
                if (scope.encloses(e.getScope())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicyTest.java

        GraphConflictResolutionPolicy policy;
        MetadataGraphEdge e1;
        MetadataGraphEdge e2;
        MetadataGraphEdge e3;
    
        // ------------------------------------------------------------------------------------------
        @BeforeEach
        void setUp() throws Exception {
            policy = new DefaultGraphConflictResolutionPolicy();
            e1 = new MetadataGraphEdge("1.1", true, null, null, 2, 1);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultClasspathTransformation.java

                //
                //            TreeSet<MetadataGraphEdge> deps = new TreeSet<MetadataGraphEdge>(
                //                        new Comparator<MetadataGraphEdge>()
                //                        {
                //                            public int compare( MetadataGraphEdge e1
                //                                              , MetadataGraphEdge e2
                //                                              )
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

            // v1-->v2
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.2", true, null, null, 2, 2));
    
            // v1-->v3
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.2", true, null, null, 4, 2));
    
            // v3-->v4
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java

        /**
         * newer artifact is selected
         */
        @Configuration(name = "newer-first", value = "true")
        private boolean newerFirst = true;
    
        public MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2) {
            int depth1 = e1.getDepth();
            int depth2 = e2.getDepth();
    
            if (depth1 == depth2) {
                ArtifactVersion v1 = new DefaultArtifactVersion(e1.getVersion());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolutionPolicy.java

     *
     *
     */
    @Deprecated
    public interface GraphConflictResolutionPolicy {
        String ROLE = GraphConflictResolutionPolicy.class.getName();
    
        MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top