Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCanonical (0.06 sec)

  1. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

    class ComparableVersionTest {
        private ComparableVersion newComparable(String version) {
            ComparableVersion ret = new ComparableVersion(version);
            String canonical = ret.getCanonical();
            String parsedCanonical = new ComparableVersion(canonical).getCanonical();
    
            assertEquals(
                    canonical,
                    parsedCanonical,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

        public int compareTo(ComparableVersion o) {
            return items.compareTo(o.items);
        }
    
        @Override
        public String toString() {
            return value;
        }
    
        public String getCanonical() {
            if (canonical == null) {
                canonical = items.toString();
            }
            return canonical;
        }
    
        @Override
        public boolean equals(Object o) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top