Class GenericVersion

  • All Implemented Interfaces:
    java.lang.Comparable<org.eclipse.aether.version.Version>, org.eclipse.aether.version.Version

    public final class GenericVersion
    extends java.lang.Object
    implements org.eclipse.aether.version.Version
    A generic version, that is a version that accepts any input string and tries to apply common sense sorting. See GenericVersionScheme for details.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.aether.util.version.GenericVersion.Item> asItems()
      Returns this instance tokenized representation as unmodifiable list.
      java.lang.String asString()
      Returns this instance backing string representation.
      int compareTo​(org.eclipse.aether.version.Version obj)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • asString

        public java.lang.String asString()
        Returns this instance backing string representation.
        Since:
        1.9.5
      • asItems

        public java.util.List<org.eclipse.aether.util.version.GenericVersion.Item> asItems()
        Returns this instance tokenized representation as unmodifiable list.
        Since:
        1.9.5
      • compareTo

        public int compareTo​(org.eclipse.aether.version.Version obj)
        Specified by:
        compareTo in interface java.lang.Comparable<org.eclipse.aether.version.Version>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface org.eclipse.aether.version.Version
        Overrides:
        toString in class java.lang.Object