Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for comparisons (0.26 sec)

  1. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                // Just returning an Integer with the index here is faster, but requires a lot of if/then/else to check for
                // -1
                //  or QUALIFIERS.size and then resort to lexical ordering. Most comparisons are decided by the first
                // character,
                // so this is still fast. If more characters are needed then it requires a lexical sort anyway.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 26K bytes
    - Viewed (0)
  2. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java

            if (lowerBound != null) {
                int comparison = lowerBound.compareTo(version);
    
                if ((comparison == 0) && !lowerBoundInclusive) {
                    return false;
                }
                if (comparison > 0) {
                    return false;
                }
            }
            if (upperBound != null) {
                int comparison = upperBound.compareTo(version);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. maven-artifact/src/site/apt/index.apt

    Display parameters as parsed by Maven (in canonical form) and comparison result:
    1. 3.2.4-alpha-1 == 3.2.4.alpha.1
       3.2.4-alpha-1 < 3.2.4-SNAPSHOT
    2. 3.2.4-SNAPSHOT == 3.2.4.snapshot
       3.2.4-SNAPSHOT < 3.2.4.0
    3. 3.2.4.0 == 3.2.4
    +----+
    
    * Useful entry points
    
     * artifact version comparison {{{./apidocs/org/apache/maven/artifact/versioning/ComparableVersion.html}javadoc}},
    
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Sun Nov 30 20:57:07 GMT 2014
    - 1.7K bytes
    - Viewed (0)
  4. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                        } else {
                            int comparison = res1.getLowerBound().compareTo(res2.getLowerBound());
                            if (comparison < 0) {
                                lower = res2.getLowerBound();
                                lowerInclusive = res2.isLowerBoundInclusive();
                            } else if (comparison == 0) {
                                lower = res1.getLowerBound();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. api/maven-api-toolchain/src/main/mdo/toolchains.mdo

            </field>
          </fields>
          <codeSegments>
            <codeSegment>
              <version>1.2.0+</version>
              <comment>Generated hashCode() and equals() based on identifier also calls its super, which breaks comparison
              </comment>
              <code>
                <![CDATA[
        /**
         * Computes a hash value based on {@link #getType()} and {@link #getProvides()} values.
         */
        public int hashCode() {
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 07 21:28:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

            boolean olderThanAll = true;
            for (String validValue : validVersions) {
                final int comparison = compareModelVersions(validValue, string);
                newerThanAll = newerThanAll && comparison < 0;
                olderThanAll = olderThanAll && comparison > 0;
            }
    
            if (newerThanAll) {
                addViolation(
                        problems,
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

     *
     */
    @Deprecated
    public class MetadataGraphVertex implements Comparable<MetadataGraphVertex> {
        ArtifactMetadata md;
    
        // indications to use these in comparison
        private boolean compareVersion = false;
        private boolean compareScope = false;
    
        public MetadataGraphVertex(ArtifactMetadata md) {
            super();
            this.md = md;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  8. maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

                                result = -1;
                            }
                        }
                        if (result == 0) {
                            // We don't consider the version range in the comparison, just the resolved version
                            result = new DefaultArtifactVersion(version)
                                    .compareTo(new DefaultArtifactVersion(a.getVersion()));
                        }
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Feb 09 19:20:54 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top