Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

     * @since 4.0.0
     */
    @Experimental
    public interface VersionConstraint {
        /**
         * Returns the range of this constraint, or {@code null} if none.
         * <p>
         * Note: only one, this method or {@link #getRecommendedVersion()} method must return non-{@code null} value.
         */
        @Nullable
        VersionRange getVersionRange();
    
        /**
         * Returns the recommended version of this constraint, or {@code null} if none.
         * <p>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

            VersionConstraint c = versionParser.parseVersionConstraint("1.0");
            assertEquals("1.0", c.getRecommendedVersion().toString());
            assertTrue(c.contains(versionParser.parseVersion("1.0")));
    
            c = versionParser.parseVersionConstraint("[1.0]");
            assertNull(c.getRecommendedVersion());
            assertTrue(c.contains(versionParser.parseVersion("1.0")));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

                    return null;
                }
                return new DefaultVersionRange(versionScheme, delegate.getRange());
            }
    
            @Override
            public Version getRecommendedVersion() {
                if (delegate.getVersion() == null) {
                    return null;
                }
                return new DefaultVersion(versionScheme, delegate.getVersion());
            }
    
            @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top