Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for containsVersion (0.14 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

                }
            }
    
            @Override
            public boolean contains(Version version) {
                if (version instanceof DefaultVersion) {
                    return delegate.containsVersion(((DefaultVersion) version).delegate);
                } else {
                    return contains(new DefaultVersion(versionScheme, version.asString()));
                }
            }
    
            @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)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java

        }
    
        public ArtifactVersion getUpperBound() {
            return upperBound;
        }
    
        public boolean isUpperBoundInclusive() {
            return upperBoundInclusive;
        }
    
        public boolean containsVersion(ArtifactVersion version) {
            if (lowerBound != null) {
                int comparison = lowerBound.compareTo(version);
    
                if ((comparison == 0) && !lowerBoundInclusive) {
                    return false;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

            DefaultArtifactVersion jdkVersion = new DefaultArtifactVersion(convertJdkToMavenVersion(getJdkVersion()));
            return jdkVersionRange.containsVersion(jdkVersion);
        }
    
        private String convertJdkToMavenVersion(String jdk) {
            return jdk.replace("_", "-");
        }
    
        protected String getJdkVersion() {
            return JDK_VERSION;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top