Class GradleVersion

  • All Implemented Interfaces:
    java.lang.Comparable<GradleVersion>

    public class GradleVersion
    extends java.lang.Object
    implements java.lang.Comparable<GradleVersion>
    Represents a Gradle version number. Despite its obviousness and the seemingly-public package "org.gradle.util", the built-in [org.gradle.util.GradleVersion] is in fact an internal class, and I really can't be bothered trying to fix things whenever Gradle decides to break their customers yet again by repackaging an obviously-useful utility. Android tools define [com.android.ide.common.repository.GradleVersion], but I can't find anything about in what version that class was introduced or whether it's a stable API. So, here we are, reinventing the wheel yet again. No, I'm not still bitter about StyledTextOutput, why do you ask?
    • Constructor Detail

    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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