- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for comparisons (0.23 sec)
-
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) -
maven-artifact/src/main/java/org/apache/maven/artifact/versioning/Restriction.java
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) -
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) -
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) -
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) -
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) -
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)